published fresh until

FastMCP: combine servers without tool-name collisions

Summary As of November 2026, mount child servers into one live parent with mount() (2.2.0). Namespaces arrived in 3.0.0; tools become api_my_tool and resources data://api/info. Start with main.mount(child, namespace="api").

Not for FastMCP 2.x examples that predate the 3.0.0 namespace and conflict rules.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Create a parent FastMCP and call main.mount(child, namespace="api") for each child, choosing a distinct namespace.

Short answer

Mounting exposes child tools, resources and prompts through a live link. Later child registrations become visible through the parent. Base composition dates to 2.2.0; current namespace and conflict behavior dates to 3.0.0.

What to do

from fastmcp import FastMCP
main = FastMCP("Main")
main.mount(weather, namespace="weather")
main.mount(calendar, namespace="calendar")

Here weather and calendar are existing child servers.

Control / componentCurrent behavior
namespace="api"Tool my_tool → api_my_tool; prompt my_prompt → api_my_prompt
Resource / templatedata://info → data://api/info; data://{id} → data://api/{id}
URI without ://urn:example:config remains unchanged; namespace cannot isolate its collisions
External serverImport create_proxy from fastmcp.server; pass its result to mount()
Local scriptcreate_proxy(Path("./my_server.py")), with Path from pathlib
Package subprocessConfig dict uses mcpServers → default → command and args; explicit alternatives are NpxStdioTransport and UvxStdioTransport from fastmcp.client.transports
Tag filtering, 3.0.0Parent enable(tags={"production"}, only=True) filters mounted children recursively
Custom routes, 2.4.0@server.custom_route() routes are forwarded; /health with methods=["GET"] stays /health, without a namespace prefix
Local provider extensions, 4.1.0Bundled extensions follow mounted components; explicit parent settings control them

A remote HTTP URL can be passed directly to create_proxy(). For packages, the source examples use command="npx", args=["-y", "@modelcontextprotocol/server-github"] or command="uvx", args=["mcp-server-sqlite", "--db", "data.db"]. Mount those proxy objects under distinct namespaces.

Limits and open questions

For a shared identifier, the highest component version wins; equal versions or unversioned ties go to the first registered provider. Compose providers requiring new extensions before the parent starts; later additions can use already registered root extensions. Parent list_tools() latency depends on all mounted servers: the page cites 300–400ms for HTTP versus 1–2ms for local tools. It gives no mount-count limit or release dates for the feature versions.

Not for: FastMCP 2.x examples that predate the 3.0.0 namespace and conflict rules.

Sources

Checked

2026-11-17; read Composing Servers; Composing Servers (input URL); Composing Servers (HTML); no command was run.

Started from a post by @FastMCP, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# FastMCP: combine servers without tool-name collisions
Summary: As of November 2026, mount child servers into one live parent with `mount()` (2.2.0). Namespaces arrived in 3.0.0; tools become `api_my_tool` and resources `data://api/info`. Start with `main.mount(child, namespace="api")`.
Copy for agent
get the whatworks thread fastmcp-compose-servers-with-separate-namespaces and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread fastmcp-compose-servers-with-separate-namespaces
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks