What Is MCP (Model Context Protocol)? Servers, Tools & Transports Explained
The Model Context Protocol (MCP) is an open standard that lets AI apps connect to external tools and data through one consistent interface. This guide explains what an MCP server is, how tools and resources work, the difference between stdio and HTTP/SSE transports, and how hosts like Claude Desktop and Cursor load a server.
Last updated:
Core Concepts
- What MCP is and why it exists
- MCP (Model Context Protocol) is an open protocol, introduced by Anthropic in late 2024, that standardizes how an AI application gives a model access to outside capabilities — files, databases, APIs, search. Before MCP, every app wired up tools its own way; MCP is the 'USB-C port' analogy: one standard connector so any MCP-compatible host (Claude Desktop, Cursor, VS Code, Windsurf, Zed) can talk to any MCP server without custom glue. A server exposes capabilities; a host (the AI app) consumes them on the model's behalf.
- Server, host, and client
- Three roles. The host is the AI application the user interacts with (e.g. Claude Desktop). Inside it, a client manages one connection to one server. The server is the program that actually exposes tools, resources, and prompts — it might run locally (a Node or Python process) or remotely (a hosted URL). One host can run many clients, each connected to a different server, so a single chat can reach a filesystem server, a GitHub server, and a database server at once.
- Tools, resources, and prompts
- An MCP server can expose three kinds of capability. Tools are functions the model can call (like get_weather or run_query), each with a name, description, and an inputSchema (JSON Schema) describing its arguments — this is what powers function calling. Resources are data the server makes readable (files, records) addressed by URI. Prompts are reusable prompt templates the user can invoke. Tools are by far the most used; a well-written description is what makes the model actually pick a tool.
- stdio vs HTTP/SSE transports
- MCP defines how host and server exchange JSON-RPC messages over a transport. stdio launches the server as a local subprocess and talks over stdin/stdout — simplest for local tools, configured with a command and args. Streamable HTTP (and the older SSE transport) connect to a remote server over a URL, used for hosted MCP servers. Local developer tools are usually stdio; shared or cloud services use HTTP/SSE.
- How a host loads a server (the config)
- Each host reads a JSON config that lists its servers. The protocol is shared, but the file shape differs per host: Claude Desktop, Cursor, Windsurf and Cline nest servers under an 'mcpServers' object; VS Code uses 'servers' with an explicit 'type'; Zed uses 'context_servers'. You specify the transport plus the command/args (stdio) or URL (HTTP), and any environment variables such as API keys.
Frequently Asked Questions
Is MCP only for Claude?
No. Anthropic created MCP but released it as an open standard, and it's now supported by many hosts — Cursor, VS Code, Windsurf, Cline, Zed and others — plus SDKs in several languages. A server you write works with any MCP-compatible host.
What's the difference between MCP and function calling?
Function calling is a model capability: the model emits a structured call to a function you defined. MCP is the transport and packaging layer around it: an MCP server advertises tools (each with an inputSchema used for function calling), handles the connection, and lets any host discover and invoke them. MCP standardizes how tools are delivered; function calling is how the model uses them.
Do I need to write code to use an MCP server?
To use an existing server, no — you add a few lines of JSON to your host's config pointing at the server's command or URL. To build a new server, you write code with an MCP SDK (TypeScript, Python, etc.) that declares your tools and their input schemas.
Where do I put the MCP config file?
It depends on the host: Claude Desktop uses claude_desktop_config.json, Cursor uses .cursor/mcp.json (project) or ~/.cursor/mcp.json (global), VS Code uses .vscode/mcp.json. Our MCP Config Generator shows the correct path and JSON shape for each.
Try these related tools
MCP Config Generator →
Generate a Model Context Protocol (MCP) server config for Claude Desktop, Cursor, VS Code, Windsurf, Cline, and Zed. Fill in the command, args, env, or URL once and copy the right JSON for each client. 100% local.
MCP Tool Validator →
Validate a Model Context Protocol (MCP) tool definition: name pattern, description, and whether the inputSchema is a valid JSON Schema. Catches the mistakes that make a tool fail to register or get ignored by the model. 100% local.
Schema → Tool Definition →
Turn a sample JSON payload into function-calling / tool definitions for OpenAI, Anthropic, and Gemini — side by side. Strict-mode toggle adds required + additionalProperties: false. 100% local, paste straight into your tools array.
Chat Messages Validator →
Validate a Chat Completions messages array before you send it — checks roles (system/user/assistant/tool), required content, and common mistakes that cause a 400. 100% local.
Structured Output Checker →
Check whether a JSON Schema meets OpenAI Structured Outputs (strict mode) rules: object root, additionalProperties:false, every property required, and no unsupported keywords. Shows exactly what to fix. 100% local.