透過 MCP 將 Google 工具連接到你的 AI 代理
OrcaRouter 透過一個 MCP 伺服器提供所有目錄工具。你的 AI 代理用 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" } } } }向你的 AI 代理提問
提出 Google 能回答的問題。AI 代理會找到合適的工具,檢查其輸入並執行它。
偏好函式呼叫?
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.
