חיבור הכלים של מניות ונתוני שוק לסוכן שלכם דרך MCP
OrcaRouter מגישה כל כלי בקטלוג דרך שרת MCP אחד. הסוכן שלכם מוצא כלים של מניות ונתוני שוק עם orca_tools_discover, בוחן אחד מהם עם orca_tools_inspect וקורא לו עם orca_tools_run, בחיוב לפי קריאה למפתח ה-API שלכם ב-OrcaRouter.
קבלת מפתח API
מפתח אחד מכסה כל כלי בקטלוג; כל קריאה מחויבת לפי המחיר שבדף שלו.
קבלת מפתח APIהוספת השרת המתארח
הדביקו את זה בהגדרות של לקוח ה-MCP שלכם והחליפו את ממלא המקום במפתח שלכם. הוא עובד ב-streamable 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" } } } }שאלו את הסוכן
בקשו משהו ש-מניות ונתוני שוק יכולה לענות עליו. הסוכן מוצא את הכלי המתאים, בודק את הקלטים שלו ומריץ אותו.
מעדיפים קריאה לפונקציות?
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.
