MewCPMewCP
  • AstheTech
  • Contact Us
  • Documentation
  • MewCP Auth API
Have a question?
  • ✉ Contact us - our dev team will reach out as soon as possible

© 2026 MewCP. All rights reserved.

githubx
Getting Started
Connect AI Apps
Frameworks & SDKs
    Vercel AI SDKGoogle ADKCrewAILangChain PythonLangChain TypeScriptLangGraphOpenAI Agents SDKClaude SDKPython MCP ClientTypeScript MCP Client
Authentication
Auth API Guides
powered by Zudoku
Frameworks & SDKs

OpenAI Agents SDK

Install

TerminalCode
pip install openai-agents

Connect

Code
import asyncio from agents.mcp import MCPServerStreamableHttp MEWCP_API_KEY = "API_KEY" async def main(): async with MCPServerStreamableHttp( name="mewcp", params={ "url": "https://gateway.mewcp.com/personal/mcp", "headers": {"Authorization": f"Bearer {MEWCP_API_KEY}"}, "timeout": 30, }, cache_tools_list=True, ) as server: tools = await server.list_tools() print("Available tools:", [t.name for t in tools]) # -> ["search", "get_schema", "list_accounts", "call_tool"] asyncio.run(main())

You get four tools rather than the tools of each app. Your agent uses them to reach every app you have connected. See How MewCP works.


Call a tool directly

Code
result = await server.call_tool( tool_name="call_tool", arguments={ "server_maskedId": "google-calendar", "tool_name": "list_events", "args": { "calendar_id": "primary", "time_min": "2026-01-15T00:00:00Z", "time_max": "2026-01-16T00:00:00Z", }, }, ) print(result.content)

If you have connected more than one account for the same app, add "alias": "work" to select one.


Use with an agent

Code
import asyncio from agents import Agent, Runner from agents.mcp import MCPServerStreamableHttp async def main(): async with MCPServerStreamableHttp( name="mewcp", params={ "url": "https://gateway.mewcp.com/personal/mcp", "headers": {"Authorization": f"Bearer {MEWCP_API_KEY}"}, }, ) as server: agent = Agent( name="Assistant", instructions="You are a helpful assistant with access to the user's connected apps.", mcp_servers=[server], ) result = await Runner.run(agent, "What is on my calendar tomorrow?") print(result.final_output) asyncio.run(main())

The agent will call search to find the calendar tool, get_schema for its parameters, then call_tool to run it.


Where to find your values

ValueWhere to get it
API_KEYDashboard -> API Keys
Connected appsDashboard -> Servers
Last modified on October 15, 2026
LangGraphClaude SDK
On this page
  • Install
  • Connect
  • Call a tool directly
  • Use with an agent
  • Where to find your values