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

Connect Your Agent Framework to MewCP

Agents you build in code connect to MewCP the same way any MCP client does: one URL and one key. Your agent gets every app connected to its toolset, and adding an app later needs no change in your code.


Pick your framework

FrameworkLanguageGuide
Claude Agent SDKPythonHow to connect
OpenAI Agents SDKPythonHow to connect
Vercel AI SDKTypeScriptHow to connect
Google ADKPythonHow to connect
LangChainPython, TypeScriptPython · TypeScript
LangGraphPythonHow to connect
CrewAIPythonHow to connect
MCP SDKPython, TypeScriptPython · TypeScript

Using a framework that is not listed? If it can connect to a remote MCP server over Streamable HTTP and send a custom header, it works with MewCP. Start from the MCP SDK guide.


Choose a toolset

A toolset is the set of apps your agent can reach. Each one has its own MCP URL, and the key you send decides whose accounts the calls run against.

Personal toolsetProject toolset
Use it forAn agent that works with your own accountsAn agent you ship to your own users
URLhttps://gateway.mewcp.com/personal/mcphttps://gateway.mewcp.com/<toolset-id>/mcp
KeyYour API KeyThe project's key, from the project's API Keys page
Whose accountsYoursThe user named in x-mewcp-enduser-id

You find a project toolset's URL on its page in the dashboard, under Projects → your project → Toolsets.


Set your environment

Every guide reads the same two variables, the same names the dashboard's Get started page uses:

TerminalCode
MEWCP_MCP_URL=https://gateway.mewcp.com/personal/mcp MEWCP_API_KEY=API_KEY

For a project toolset, set MEWCP_MCP_URL to the toolset's URL and MEWCP_API_KEY to the project's key.

Your agent sends the key on every request as a header:

Code
Authorization: Bearer <MEWCP_API_KEY>

Keep the key on your server. Never ship it in browser or mobile app code.


Serve your own users

With a project toolset, one agent serves all your users. Add one more header to each request, set to the ID of the user the agent is acting for:

Code
x-mewcp-enduser-id: <your user's ID>

MewCP runs the call against the accounts that user connected, and no one else's. Use the same ID you pass as externalUserId when your users connect their accounts through the MewCP Auth API.

How you send a per-request header depends on the framework, so each guide shows it in its Serve your users section.

If the user has not connected the app a tool needs, the call does not fail silently. It returns a link for that user to connect the app, which your agent can hand to them.


What your agent sees

Your agent does not load the tools of every connected app. It sees four:

ToolWhat it does
searchFind tools by keyword across every connected app
get_schemaGet the parameters for the tools it picked
list_accountsList the accounts connected for one app
call_toolRun the tool

The agent uses them in that order, so it can still pick the right tool when the toolset holds hundreds. Keeping the list to four keeps every request small, however many apps you connect. See How MewCP works for more.

Last modified on October 15, 2026
DeepSeek HarnessVercel AI SDK
On this page
  • Pick your framework
  • Choose a toolset
  • Set your environment
  • Serve your own users
  • What your agent sees