Skip to main content

fastmcp.client.transports.memory

Classes

FastMCPTransport

In-memory transport for FastMCP servers. This transport connects directly to a FastMCP server instance in the same Python process. It works with both FastMCP servers and the SDK’s own high-level MCPServer from the low-level MCP SDK. This is particularly useful for unit tests or scenarios where client and server run in the same runtime. Methods:

connect_session