MCP Integration
Multi-Agent Frameworks

Multi-Agent Frameworks

These frameworks speak MCP over streamable HTTP. The examples connect to the Lite gateway (https://gw.route6.me/mcp, Bearer auth — no Docker). For Pro, run the route6me/netid container and use http://localhost:3000/mcp with no auth header.

CrewAI

from crewai import Agent
from crewai_tools import MCPServerAdapter
 
server_params = {
    "url": "https://gw.route6.me/mcp",
    "headers": {"Authorization": "Bearer sk_a6_your_key_here"},
    "transport": "streamable-http",
}
 
with MCPServerAdapter(server_params) as route6_tools:
    researcher = Agent(
        role="Web Researcher",
        goal="Research topics using Route6's web tools",
        backstory="Expert at finding information from a real IPv6 identity",
        tools=route6_tools,
        verbose=True,
    )

LangGraph

from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
 
mcp_client = MultiServerMCPClient({
    "route6": {
        "url": "https://gw.route6.me/mcp",
        "headers": {"Authorization": "Bearer sk_a6_your_key_here"},
        "transport": "streamable_http",
    }
})
tools = await mcp_client.get_tools()
agent = create_react_agent(model, tools)
result = await agent.ainvoke({"messages": [("human", "What is my public IPv6?")]})

Read the API key from an environment variable, not a literal. For multi-agent team setups, see the Team Plan Quick Start and the Mesh Networking reference.