How to Use the Bluesky Social MCP in Vercel AI SDK
Build React apps that stream Bluesky feeds and post updates in real-time with the Vercel AI SDK.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Bluesky Social MCP to Vercel AI SDK
Create your Vinkius account to connect Bluesky Social to Vercel AI SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Stream Bluesky timelines directly to your Next.js frontend.
The `list_timeline` tool lets your Vercel AI SDK app grab home feeds and stream them directly into your UI. Stop making your users stare at spinner icons while fetching social data from the AT Protocol. This integration lets your app grab home feeds using `list_timeline` and immediately stream the raw text and metadata right into your React components. If a user wants to find new voices, the MCP Server can call `search_profiles` to find accounts and display them on the fly. You get a fast, responsive interface without writing complex state management or custom API endpoints on your backend.
Post and interact with Bluesky without page reloads.
Publishing updates to the AT Protocol is handled by the `create_post` tool within your streaming chat interface. Let your users publish updates directly from your chat interface. By passing the tools to `streamText`, your agent can draft a reply and immediately fire `create_post` to publish it. The user sees the confirmation card pop up instantly in the chat stream. The same flow handles social graph actions. If your user likes what they see, the agent invokes `follow_user` or clears up their feed with `mute_user`, keeping the live UI perfectly in sync with their actual Bluesky account state.
Deploy edge functions that track notifications.
The `list_notifications` tool allows your edge functions to monitor decentralized social interactions with minimal latency. Run your social monitoring tools on Vercel's edge network without cold-start delays. The SDK connects to the MCP Server over lightweight HTTP, letting you run cron jobs or middleware that trigger `list_notifications` to check for new interactions. Because you can pass an `authProvider` to handle user credentials dynamically, your edge functions can manage multiple Bluesky accounts safely. It keeps your serverless execution times low while maintaining a persistent connection to the decentralized web.
Set up Bluesky Social MCP in Vercel AI SDK
Prerequisites
- Node.js 18+ and a TypeScript project
-
ai+@modelcontextprotocol/sdkpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install ai @modelcontextprotocol/sdkplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Create the Streamable HTTP transport
Use
StreamableHTTPClientTransportwith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and use tools
Call
mcpClient.tools()to auto-discover all Bluesky Social tools. Pass them directly togenerateText()orstreamText()— no manual schema definitions needed. - 4
Works with any model provider
Swap
openai("gpt-4o")for any AI SDK provider — Anthropic, Google, Mistral. The MCP tools work identically across all supported models.
import { experimental_createMCPClient as createMCPClient } from "ai";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
const transport = new StreamableHTTPClientTransport(
new URL("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
);
const mcpClient = await createMCPClient({ transport });
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "List recent Bluesky Social transactions",
});
console.log(text);
await mcpClient.close(); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Bluesky Social. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Bluesky Social MCP in Vercel AI SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Bluesky Social MCP today
We host it, we monitor it, we maintain it. You just paste one token.