MCP Simulator
Explore the Model Context Protocol: server discovery, tool calling, resource access, and prompt templates
The Model Context Protocol (MCP) defines a standard way for AI hosts (like Claude, Cursor, or your own app) to connect to external MCP Servers that expose tools, resources, and prompts. Think of it as USB-C for AI — one universal plug for any data source.
stdio Transport
The host spawns the MCP server as a child process and communicates via stdin/stdout. Zero network overhead. Ideal for local tools like file system access, Git, or database queries.
| Transport | Location | Latency | Use Case |
|---|---|---|---|
| stdio | Local | ~0ms | IDE plugins, local DB |
| SSE | Remote | 50-200ms | Cloud APIs, SaaS |
| Streamable HTTP | Any | Variable | New standard (replaces SSE) |
When a host connects to an MCP server, the first step is capability negotiation. The server announces what it can do: tools, resources, prompts, and sampling support.
Available MCP Servers
Initialization Handshake
Client sends protocol version + capabilities
Server responds with its capabilities
Client confirms. Connection is now ready.
Client discovers available tools
Client discovers available resources
Server Capabilities Response
Tools are the primary way an LLM interacts with external systems via MCP.
The host sends tools/call with the tool name and arguments; the
server executes and returns results.
Server Tools (filesystem)
JSON-RPC Exchange
Resources expose data the LLM can read (like files, DB schemas, or API docs). Prompts are reusable templates the server offers for common tasks. Unlike tools, resources are read-only and don't cause side effects.
Resources
Python source file • 4.2 KB • text/x-python
Table schema • application/json
Prompt template • Review diff for issues
Resource Content Preview
Resources vs Tools
- • Read-only data
- • No side effects
- • URI-addressable
- • Can be subscribed to
- • Execute actions
- • May have side effects
- • Function-style call
- • Need user approval
Simulate full MCP conversations. Choose a scenario and watch the host, client, and server interact in real-time.