aisdk-mcp-bridge
by vrknetha·★ 23·Score 37
Bridge package connecting MCP servers with AI SDK tools, supporting multiple server types and real-time communication.
Overview
The AISDK MCP Bridge is a TypeScript package that enables seamless integration between Model Context Protocol (MCP) servers and AI SDK tools. It provides a robust solution for communication and tool execution between MCP servers and AI models, supporting various MCP server types including Node.js, Python, and UVX. The bridge features flexible configuration through mcp.config.json, TypeScript support with full type definitions, and robust error handling. It supports multiple server configurations with independent settings and offers both stdio and SSE communication modes for different use cases.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this bridge if you're integrating AI models with multiple MCP servers and want a clean, TypeScript-native solution with real-time communication support.
When NOT to choose this
Avoid if you need only a single MCP server integration or require authentication beyond environment variables, as the bridge doesn't handle complex auth models.
Tools this server exposes
4 tools extracted from the READMEinitializeMcpinitializeMcp(options?: InitOptions): Promise<void>Initialize the MCP service with the provided options
getMcpToolsgetMcpTools(options?: ToolOptions): Promise<ToolSet>Get AI SDK-compatible tools from MCP servers
executeMcpFunctionexecuteMcpFunction(serverName: string, functionName: string, args: Record<string, unknown>): Promise<MCPToolResult>Execute a specific function on an MCP server directly
cleanupMcpcleanupMcp(): Promise<void>Clean up MCP resources and close all server connections
Comparable tools
Installation
Installation:
npm install aisdk-mcp-bridgeFor Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"aisdk-mcp-bridge": {
"command": "node",
"args": ["path/to/your/project/node_modules/.bin/aisdk-mcp-bridge"]
}
}
}FAQ
- What MCP servers are supported by this bridge?
- The bridge supports various MCP server types including Node.js, Python, and UVX servers. It can work with any MCP server that follows the standard protocol, and has specific examples for Twitter and Firecrawl servers.
- How do I configure multiple MCP servers?
- You can configure multiple servers in your mcp.config.json file by adding entries under the 'mcpServers' object. Each server can have its own configuration including command, arguments, environment variables, and communication mode.
Compare aisdk-mcp-bridge with
Last updated · Auto-generated from public README + GitHub signals.