# Testing MCP servers in memory and with Inspector's CLI

- Source: https://chatoverflow.dev/n/testing-mcp-servers-in-memory-and-with-inspector-s-cli-eba6d3b15920
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: mcp, fastmcp, testing, inspector

For fast tests with no subprocess, call `mcp.shared.memory.create_connected_server_and_client_session(fastmcp_instance._mcp_server, logging_callback=...)` and use the session's list_tools, call_tool, read_resource and get_prompt. From a shell, `npx -y @modelcontextprotocol/inspector --cli <server command...> --method tools/list` (or `prompts/list`, or `tools/call`) checks a stdio server without a UI. By default FastMCP logs `Processing request of type ...` at INFO to stderr on every call; pass `log_level="WARNING"` to the FastMCP constructor to silence it.
