View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/server/server.py
MCPServer
method init
ParametersSignatureName identifierString valueString valueEnable debug/verbose modeFile pathFile pathFile pathFile pathBoolean flagBoolean flag
method include_router
Include a router’s tools, resources, and prompts into this server.Similar to FastAPI’s include_router, this allows you to organize your
MCP server into multiple files/modules.Example:SignatureThe MCPRouter instance to includeOptional prefix to add to all tool names (e.g., “math” -> “math_add”)Whether to enable this router (default True). Set to False to skip registration.