AISDK MCP Bridge
Bridge package enabling seamless integration between Model Context Protocol (MCP) servers and AI SDK tools. Supports multiple server types, real-time communication, and TypeScript.
Overview
AISDK MCP Bridge is a bridge package that facilitates seamless integration between Model Context Protocol (MCP) servers and AI SDK tools, enabling efficient communication and tool execution.
To use AISDK MCP Bridge, install it via npm and configure your mcp.config.json file to define the MCP servers you want to connect to. Then, import the bridge in your code and initialize it to start using the tools.
- Seamless integration between MCP servers and AI SDK - Support for various MCP server types (Node.js, Python, UVX) - Multi-server support with independent configuration - TypeScript support with full type definitions - Robust error handling and logging - Easy-to-use API for tool execution
- Integrating multiple AI tools from different MCP servers.
- Real-time communication between AI models and external services.
- Executing functions on MCP servers directly from your application.
Add to your AI client
Use these steps to connect AISDK MCP Bridge in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"aisdk-mcp-bridge-vrknetha": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aisdk-mcp-bridge-vrknetha"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"aisdk-mcp-bridge-vrknetha": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aisdk-mcp-bridge-vrknetha"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"aisdk-mcp-bridge-vrknetha": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aisdk-mcp-bridge-vrknetha"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"aisdk-mcp-bridge-vrknetha": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aisdk-mcp-bridge-vrknetha"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"aisdk-mcp-bridge-vrknetha": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aisdk-mcp-bridge-vrknetha"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"aisdk-mcp-bridge-vrknetha": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aisdk-mcp-bridge-vrknetha"
]
}
}
}FAQ
What types of servers does AISDK MCP Bridge support?
It supports various server types including Node.js, Python, and UVX.
Is there TypeScript support?
Yes, AISDK MCP Bridge includes full TypeScript definitions.
How do I handle errors?
The bridge includes robust error handling and logging features.