
An MCP server is a program that connects AI assistants to one external tool or data source — a code host, a database, a knowledge base — through the Model Context Protocol (MCP), an open standard for linking AI models to outside systems. Connect a server for GitHub and Claude, ChatGPT, Cursor, or any compatible assistant can read your issues; connect one for your knowledge base and it can search your team's notes. One protocol, any combination.
The weakness this fixes is shared by every AI assistant: the model can reason impressively, but it cannot reach the places where your actual work lives. Your notes sit in one app, your code in another, your tasks in a third, and the model sees none of them. MCP is the plug standard; an MCP server is the socket. Instead of every AI app building a custom integration for every tool, both sides implement MCP once.
This guide explains what MCP servers actually do, how the protocol works under the hood, how MCP differs from APIs and RAG, and how to connect your first server in about five minutes — no code required.
MCP stands for Model Context Protocol, an open standard introduced by Anthropic in November 2024 and open-sourced from day one. Adoption moved unusually fast: OpenAI announced MCP support in March 2025, Google followed weeks later, and by 2026 effectively every major AI surface — Claude, ChatGPT, Gemini-based tools, Cursor, Cline, Windsurf, VS Code with Copilot — ships an MCP client.
The problem MCP solves is old and unglamorous: the N×M integration problem. Before MCP, connecting five AI apps to six tools meant thirty custom integrations, each with its own auth, data format, and failure modes. With a shared protocol, each AI app implements MCP once, each tool exposes MCP once, and every pairing works. That is why the ecosystem settled on the same metaphor almost immediately: MCP is the USB-C port for AI — one connector shape, whatever you plug in.
The protocol itself is unglamorous too, deliberately. Under the hood it is JSON-RPC messages over one of two transports: stdio for servers running on your own machine, and Streamable HTTP for servers running remotely. Everything else — what the server offers, what the model may call — is negotiated when the two sides connect.
An MCP server is a small program that advertises capabilities to AI applications in three standard shapes:
search_docs, create_issue, or query_database. Each tool declares typed inputs and outputs, so the model knows exactly how to call it.A server can be tiny (a hundred lines wrapping one internal API) or substantial (the GitHub MCP server exposes dozens of tools across repos, issues, and pull requests). It can run locally next to your editor, or as a hosted endpoint maintained by the product it connects to — the way AFFiNE's built-in MCP server runs as part of the workspace itself, so there is nothing to install or keep updated.
The important mental shift: an MCP server is not a chatbot plugin or a browser extension. It is infrastructure — a stable, typed contract between whatever AI app you use today and the system that holds your data. Swap the assistant next year and the server keeps working.
MCP's architecture has three roles: the host (the AI application you interact with), an MCP client the host runs for each connection, and the server that fronts a tool or data source. Four things happen every time an assistant uses one:
The division of labor is what makes this scale. The host handles the conversation and the model. The server handles auth, data access, and domain logic. Neither needs to know anything else about how the other is built — the protocol is the entire interface.
Five patterns cover most real-world MCP use cases today:
A useful test for whether MCP will help you: count how often you copy-paste content into an AI chat. Every recurring paste is a missing server.
| Server | What it connects | Typical use |
|---|---|---|
| GitHub | Repos, issues, PRs | "Summarize the open issues tagged bug in this repo" |
| Playwright | A real browser | End-to-end testing and web automation by agents |
| Chrome DevTools | Live browser internals | Debugging performance and layout with an agent |
| Figma | Design files | Generating code that matches the actual design |
| Context7 | Library documentation | Up-to-date API docs inside coding agents |
| Slack | Channels and messages | "What did the team decide about the launch date?" |
| Notion | Pages and databases | Querying hosted workspace content |
| Obsidian (community) | Local vault | Searching personal markdown notes; needs the desktop app running |
| AFFiNE | Docs + whiteboards | Semantic search across docs and canvases; no separate charge when AI features are enabled |
Official first-party servers exist for most major products now, and the official MCP registry — launched in preview in late 2025 — plus community directories list thousands more. If a tool matters to your workflow, odds are good someone has already built the connector.
Short version: an API is one service's own interface for developers, RAG is a retrieval technique inside a single application's pipeline, and MCP is the standard layer that lets any assistant reach tools built on either — most MCP servers wrap existing APIs, and retrieval works best exposed through an MCP search tool, which is exactly how AFFiNE serves workspace search to every connected assistant. The full comparison — decision path, function-calling boundary, combination patterns — lives in MCP vs API vs RAG. For why this retrieval layer is becoming core infrastructure, see why context management is the infrastructure layer.
The fastest way to understand MCP is to point an assistant at content you know well. AFFiNE ships its MCP server built in, so the setup is genuinely short:
~/.cursor/mcp.json as-is. Any client that speaks Streamable HTTP works the same way.There is no separate plan or usage fee for the MCP server — it works on AFFiNE Cloud and on self-hosted instances with AI features enabled. If you are building toward a team wiki that AI tools can maintain and query, the pattern in What is LLM Wiki pairs naturally with an MCP-connected knowledge base.
Safer than ad-hoc integrations, if you follow four rules:
An MCP server is a connector program that lets AI assistants use an external tool or data source through one open standard. Instead of a custom integration for every app-tool pairing, the assistant and the tool both speak MCP — like plugging any device into the same USB-C port.
MCP stands for Model Context Protocol, the open standard Anthropic introduced in November 2024 for connecting AI models to external tools and data. It is now supported by Claude, ChatGPT, Cursor, Cline, and most other AI applications, making it the de facto integration layer for AI assistants.
Yes. The protocol is open source and free to implement, and most official servers are free to run or connect. AFFiNE's built-in MCP server, for example, has no separate charge — it works on AFFiNE Cloud and self-hosted instances with AI features enabled, using credentials you create in workspace settings.
An API is a service's own interface, designed for developers writing code against that one service. MCP is a standard layer on top: it describes tools in a way models can discover and call safely. Most MCP servers wrap existing APIs — MCP standardizes how AI apps consume them, it does not replace them.
Yes. OpenAI announced MCP support in March 2025, and ChatGPT can connect to remote MCP servers through connectors, with full tool access available in developer mode. Claude, Cursor, Cline, Windsurf, and VS Code agents support MCP as well, so one server — like AFFiNE's — serves every assistant you use.
No. Connecting an existing server is configuration, not coding: create a credential, copy a JSON snippet, paste it into your AI app. AFFiNE generates that snippet for you in Settings → Integrations → MCP Server. Building a new server requires programming — our build guide has tested fifteen-minute quickstarts — but thousands of ready-made servers already exist.
Most knowledge-tool servers only search text. AFFiNE's MCP server also indexes whiteboard content: search covers text on Edgeless canvases and returns element and frame locators, so an assistant can find the diagram where a decision was sketched. Document reads return the page content as Markdown.
MCP turned "can my AI see this?" from a product roadmap question into a checkbox. The standard is settled, the clients are everywhere, and the useful work now is deciding what to connect. If your notes and whiteboards are where decisions live, connect your knowledge base to AI.