通过 MCP 将 Google 工具连接到你的智能体
OrcaRouter 通过一个 MCP 服务器提供所有目录工具。你的智能体用 orca_tools_discover 查找 Google 工具,用 orca_tools_inspect 查看其中一个,再用 orca_tools_run 调用它,按次计费到你的 OrcaRouter API 密钥。
获取 API 密钥
一个密钥即可使用目录中的所有工具;每次调用按其页面上的价格计费。
获取 API 密钥添加托管服务器
将以下内容粘贴到你的 MCP 客户端配置中,并用你的密钥替换占位符。它使用可流式 HTTP,无需安装任何东西。
托管 MCP 服务器 { "mcpServers": { "orcarouter": { "type": "http", "url": "https://api.orcarouter.ai/v1/tools/mcp", "headers": { "Authorization": "Bearer <ORCAROUTER_API_KEY>" } } } }或在本地运行
更喜欢本地 stdio 服务器?@orcarouter/mcp 包在你的机器上提供同样的工具。
本地 MCP 服务器 { "mcpServers": { "orcarouter": { "command": "npx", "args": [ "-y", "@orcarouter/mcp" ], "env": { "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>", "ORCAROUTER_BASE_URL": "https://api.orcarouter.ai" } } } }向你的智能体提问
提出 Google 能回答的问题。智能体会找到合适的工具,检查其输入并运行它。
更喜欢函数调用?
GET /v1/tools/functions 可将任意目录工具返回为 OpenAI 或 Anthropic 函数定义;用 POST /v1/tools/{id}/run 运行它。
通过 MCP 连接的客户端
- MastraConnect a Mastra agent to the OrcaRouter MCP server with MCPClient, so it can search the tool catalog and run what it finds.
- CrewAIGive a CrewAI agent the OrcaRouter tool catalog through MCPServerAdapter, so it can find and run tools while it works on a task.
- LlamaIndexLoad the OrcaRouter MCP server's tools with McpToolSpec and use them in a LlamaIndex FunctionAgent.
- Claude CodeAdd the OrcaRouter MCP server to Claude Code with one command; Claude can then search the tool catalog and run tools while it works.
- CursorRegister the OrcaRouter MCP server in Cursor's mcp.json so its agent can find and run catalog tools from chat.
