Connect LangGraph
LangChain · MIT
Graph-based agent orchestration — langchain-mcp-adapters turns every MCP tool into a LangChain tool.
1 · Choose the MCPs to connect
2 · How should it authenticate?
The config uses a mk_… placeholder — mint your key from MCP Access & keys and paste it in locally. Keys are revocable instantly.
3 · Python — langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"deepinsights_mospi": {
"transport": "streamable_http",
"url": "https://marketplace-gateway-pef65a33ta-el.a.run.app/mospi/mcp",
"headers": {"Authorization": "Bearer mk_…"},
},
})
tools = await client.get_tools()- 1.Replace mk_… with your personal API key.
4 · Create it as an app
Save this harness + MCP setup to your account. You get a workbench with a live test chat over the combined tool surface — the exact gateway endpoints, auth and tools LangGraph will use, metered to your own quota.
5 · Or test each MCP on its own
Each playground's Chat and Tools pages exercise exactly the tools your harness will see — same servers, same gateway. Verify a query there first, then run it from LangGraph.