Skip to content

Conversation

wkpark
Copy link

@wkpark wkpark commented Oct 13, 2025

In-memory transport is officially supported by FastMCP v2. However, FastMCP v1 already supports in-memory transport.

This is my attempt to support "In-memory" transport in the langchain-mcp-adapters.

config example

    client = MultiServerMCPClient(
        {
            "math": {
                "command": "python3",
                "args": [math_server_path],
                "transport": "stdio",
            },
            "weather": {
                "server": weather_server_module.mcp, # mcp instance
                "transport": "in_memory",
            },
        },
    )
    # Check that we have tools from both servers
    all_tools = await client.get_tools()

See also:

In-memory transport is officially supported by FastMCP v2. However,
FastMCP v1 already supports in-memory transport (but undocumented)

See also:
 jlowin/fastmcp#758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant