# Model Context Protocol: how AI assistants plug into your tools and data

> The Model Context Protocol (MCP) is an open standard, introduced by Anthropic on 25 November 2024, that lets AI applications such as Claude Desktop or Cursor call tools and read data from separate programs called MCP servers. Servers run locally over stdio or remotely over Streamable HTTP, using JSON-RPC 2.0 messages.

Source: https://surfacedd.com/glossary/model-context-protocol · Updated 2026-11-19

## Definition

The **Model Context Protocol (MCP)** is an open protocol that standardises how an AI application connects to outside tools and data. Anthropic [introduced it on 25 November 2024](https://www.anthropic.com/news/model-context-protocol) as a way to replace one-off integrations with a single protocol: developers expose data through MCP servers, and AI applications connect to those servers as MCP clients.

The [specification](https://modelcontextprotocol.io/specification/latest) names three roles. The **host** is the AI application you use (Claude Desktop, Cursor, Claude Code). The **client** is the connector inside the host. The **server** is the program that provides capabilities. Messages are JSON-RPC 2.0. A server can offer three kinds of feature:

- **Tools:** functions the model can call, such as "get my visibility for last month".
- **Resources:** data for the user or model to read, such as a report in Markdown.
- **Prompts:** templated messages and workflows the user can pick.

The specification also sets safety principles: hosts must get explicit user consent before invoking a tool or exposing user data to a server, and tool descriptions from untrusted servers should be treated as untrusted.

## In practice: local stdio vs remote Streamable HTTP

MCP defines two standard transports. Which one a server uses decides where it runs, who can reach it and what it can see. Facts below are from the current specification (protocol version 2026-07-28): the [stdio binding](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/stdio) and the [Streamable HTTP binding](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http).

| | Local server (stdio) | Remote server (Streamable HTTP) |
|---|---|---|
| How it starts | The client launches the server as a subprocess on your computer | The server runs independently and can serve many clients |
| How messages travel | Newline-delimited JSON-RPC over the process's stdin and stdout; logs go to stderr | Each message is an HTTP POST to one MCP endpoint, e.g. `https://example.com/mcp`; replies are JSON or a request-scoped event stream |
| Who can reach it | Only the app that started it | Anyone who can reach the URL and pass its authentication |
| Security duties in the spec | The server must write nothing to stdout except valid MCP messages | Servers must validate the `Origin` header, should bind to 127.0.0.1 when local, and should authenticate every connection |
| Where your data goes | Stays on your machine unless the server itself makes network calls | Travels to the server's host |
| Typical use | Your files, a local database, a desktop app's data | SaaS products, shared team services |

The 2025-06-18 revision of the specification says clients should support stdio whenever possible. For data that should never leave your computer, a local stdio server that makes no network calls is the narrowest design: the only party that sees the data is the AI app you're already using, and the model provider it sends prompts to.

The current revision also changed Streamable HTTP: protocol-level sessions and the separate GET stream were removed, and each request now carries its own metadata. Servers written for revisions from 2025-03-26 to 2025-11-25 still work through the backward-compatibility rules in the spec.

## A worked example: a local MCP server config, line by line

This is the entry Surfacedd shows in Settings › AI assistants, which you can paste into an MCP host's config file (or let the app write for you after you confirm):

```json
{
  "mcpServers": {
    "surfacedd": {
      "command": "/Applications/Surfacedd.app/Contents/MacOS/surfacedd-mcp",
      "args": ["--db", "/Users/you/Library/Application Support/com.surfacedd.app/surfacedd.sqlite"]
    }
  }
}
```

- `mcpServers` is the map of servers the host should know about; `surfacedd` is just the name the host shows.
- `command` is the program the host starts as a subprocess. Because there is a command and no URL, this is a stdio server.
- `args` tells the server which database to open. The host never needs an API key or a password for it, because the server reads a file on your disk.

When you then ask Claude "Which competitor gained the most share of voice in ChatGPT last month?", the host sends a `tools/call` request for a tool such as `competitor_share` down stdin, the server runs a read-only query on that SQLite file, and the answer comes back on stdout. Nothing goes over the network on the server side. 

![Settings, AI assistants: one-click connect for Claude Desktop, Claude Code and Cursor, and the copyable mcpServers entry pointing at the local surfacedd-mcp binary and database](https://surfacedd.com/shots/mcp-light.png "Sample workspace, fictional brand")
## How it shows up in Surfacedd

Surfacedd ships a local, read-only [MCP server](/features/mcp-server) with 25 tools over your own Surfacedd database: visibility, prompts, answers, competitors, sources, fan-outs, tasks, crawler stats, site-audit issues, and your Search Console and GA4 data. It opens the database read-only, never reads your API keys, makes no network calls and can't start a paid run. It still answers when your licence is in read-only mode, because the data is yours. 

The app installs it into Claude Desktop, Claude Code and Cursor with one click; see [connect Claude Desktop](/integrations/claude-desktop) and the [MCP setup doc](/docs/integrations/mcp-setup). For a comparison of SEO-focused MCP servers, including remote ones, read our [SEO MCP servers guide](/guides/seo-mcp-servers).

## Related terms

- [Retrieval-augmented generation](/glossary/retrieval-augmented-generation): answering from retrieved data, which MCP tools are one way to supply.
- [Grounding](/glossary/grounding): basing an answer on fetched sources rather than memory.
- [Answer engine](/glossary/answer-engine): assistants that answer directly, some of which act as MCP hosts.

## Sources

- [Anthropic: Introducing the Model Context Protocol (25 November 2024)](https://www.anthropic.com/news/model-context-protocol), checked 2026-11-19
- [Model Context Protocol: Specification (latest, 2026-07-28)](https://modelcontextprotocol.io/specification/latest), checked 2026-11-19
- [MCP specification: stdio transport (2026-07-28)](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/stdio), checked 2026-11-19
- [MCP specification: Streamable HTTP transport (2026-07-28)](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http), checked 2026-11-19
- [MCP specification: transports (2025-06-18), incl. "clients SHOULD support stdio whenever possible"](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports), checked 2026-11-19
