The Short Answer
An MCP server is a program that gives an AI application tools and data through the Model Context Protocol (MCP), an open standard that Anthropic introduced on 25 November 2024. Instead of every AI app writing its own integration for every service, a service writes one MCP server, and any app that speaks MCP can use it.
The protocol's own documentation compares it to a port: "Think of MCP like a USB-C port for AI applications" (modelcontextprotocol.io). The server is the device on the other end of the cable. It might read files on your computer or query a database.
The example throughout is DeepDNA's server, because anyone can call it in a minute without an account and it only reads data.
How MCP Works: Host, Client and Server
The MCP specification describes three roles:
| Role | What it is | Example |
|---|---|---|
| Host | The AI application the person uses | A chat app or a code editor with an AI assistant |
| Client | A connector inside the host; each client talks to exactly one server | The editor's connection to a file-system server |
| Server | The program that offers tools and data | A server for a file system, a database or a knowledge base |
Each client and its server exchange JSON-RPC 2.0 messages. In practice the host, through the client, asks the server what it offers, shows that list to the model, and, when the model decides to use something, sends the request and passes the answer back into the conversation.
What a Server Can Offer
A server can expose three kinds of things:
- Tools: functions the model can call, such as "look up this gene" or "create this ticket". The specification calls tools model-controlled: the model chooses when to call them.
- Resources: data the application can read and add to the context, such as a file or a database schema.
- Prompts: ready-made templates that a user can pick, such as "review this medication list".
The client side has features too. In the current revision of the specification (2026-07-28), the one that is not deprecated is elicitation: when the client supports it, a server can ask the user for more information through the client.
Local and Remote Servers
The specification defines two standard transports:
- stdio: the host starts the server as a process on your own computer and talks to it through standard input and output. This is how local servers work, for example one that reads files from a folder. DeepDNA's local package,
deepdna-mcp, is one: it reads a raw DNA file on your computer. - Streamable HTTP: the server usually runs somewhere else and the host talks to it over HTTP at a URL. This is a remote server. It replaces the older HTTP+SSE transport, which was deprecated in protocol version 2025-03-26.
The difference matters for privacy and setup. A local server can reach what your computer can reach. It sends nothing over the network unless it's built to, but whatever it returns goes into the AI conversation, and with a cloud-hosted model that conversation goes to the model provider. A remote server needs nothing installed, but everything sent to it travels to whoever runs it.
MCP Server Example: DeepDNA's Live Server
DeepDNA runs a remote MCP server at https://deepdna.ai/mcp. It answers questions about genes, variants and drug–gene pairs with curated records and their sources: 17 genes and 84 drug–gene pairs in its knowledge base. There is no key and no account, and it costs nothing. Its records are educational information, not medical advice.
You can see what it offers without any AI app at all. This is the tools/list request a client sends, after the initial handshake, to see what a server offers (DeepDNA's server also answers it on its own):
curl https://deepdna.ai/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
The response is JSON: each tool comes with its name, description, input schema and annotations. It lists five tools:
| Tool | What it does |
|---|---|
list_genes |
Lists the genes in the knowledge base |
lookup_gene |
Returns what is curated about one gene, with sources |
lookup_variant |
Looks up one variant by its rsID |
lookup_drug_gene |
Returns the guidance for a gene, or a gene and a drug, with its basis (a guideline, a drug label or the literature) and sources |
check_medications |
Takes a list of generic drug names and says which have a drug–gene record |
Each tool carries annotations, and all five are marked read-only and non-destructive. The server also offers two prompts, medication_review and explain_variant. It doesn't take genotypes or DNA files: the tools accept gene symbols, rsIDs and drug names only.
When the model calls a tool, the client sends a tools/call message, for example lookup_drug_gene with {"gene": "CYP2C19", "drug": "clopidogrel"}. The answer comes back as text the model can quote, with the basis and the sources of the record instead of a guess from memory. It describes what the guidance says for each phenotype group; it doesn't say which group a person is in.
How to Connect an MCP Server to Claude Code or Cursor
Most apps take a remote server's URL. In Claude Code it is one line:
claude mcp add --transport http deepdna https://deepdna.ai/mcp
Editors such as Cursor use a JSON file:
{
"mcpServers": {
"deepdna": { "type": "http", "url": "https://deepdna.ai/mcp" }
}
}
The exact steps differ by app. The connect page has them for each client, and the MCP docs describe the tools in full. Once connected, name the server in your question, for example "Use DeepDNA: what does CPIC say about CYP2C19 and clopidogrel?", otherwise the model will often just answer from memory.
What to Check Before You Connect One
An MCP server runs with the access you give it, so treat it like any other software you install or any service you send data to:
- What the tools can do. A server whose tools only read is a different risk from one that can send email, delete files or spend money. Read the tool list and the annotations before connecting. Annotations are declared by the server itself, so trust them only as far as you trust the server. The specification says there should always be a human in the loop able to deny a tool call, and good hosts ask before running one. Don't turn that confirmation off for a server you haven't read.
- What the descriptions say. The model reads every tool's name and description, so a malicious description can try to steer it. Connect servers from sources you trust.
- What leaves your machine. With a remote server, whatever the model puts in a request goes to that server. Read its privacy policy. For example, DeepDNA's server records requests without IP addresses or request bodies, as its privacy policy explains. It also asks you not to type personal genetic results into a question.
- Who maintains it. Look for a public source repository or a registry entry. The official MCP Registry, still in preview, lists servers by name; DeepDNA's is
ai.deepdna/knowledge. For servers in one field, a side-by-side review helps, such as this comparison of pharmacogenomics MCP servers.
Frequently Asked Questions
What is an MCP server in simple terms?
It is a program that gives an AI application tools and data through the Model Context Protocol, a shared standard. The AI app connects to it, sees what it offers, and the model can call its tools and use the answers in the conversation.
What is the difference between an MCP server and an API?
An API is written for programmers, who read its documentation and write code to call it. An MCP server is written for AI applications: it describes its own tools in a standard way, so a model can discover them and decide when to call them. Many MCP servers are a layer on top of an existing API. DeepDNA offers both: the REST API and the MCP server return the same records.
What is the difference between a local and a remote MCP server?
A local server runs on your own computer and talks to the app through standard input and output (stdio). A remote server runs elsewhere and is reached over HTTP at a URL. Local servers can work with files on your machine; remote servers need nothing installed.
Do I need to write code to use an MCP server?
No. Using one means adding its URL or its start command to an app that supports MCP. Writing your own server does take code, and the official SDKs cover several languages.
Is MCP only for Claude?
No. Anthropic introduced it as an open standard, and the protocol's documentation lists other hosts, including ChatGPT and Visual Studio Code.
Is it safe to connect an MCP server?
It depends on the server. Prefer servers whose tools only read, check what a remote server receives and records, and keep the host's confirmation on before tool calls. DeepDNA's server only reads, and it refuses genotypes and DNA files.
Checked against the Model Context Protocol specification, revision 2026-07-28, and DeepDNA's live server on 21 November 2026. DeepDNA's records are educational information, not medical advice.
This article was created with AI assistance and reviewed by the DeepDNA editorial team.
Ask your AI agent
DeepDNA is an MCP server and API for AI agents: cited records on genes, variants and drug–gene pairs, free and open, no key. Connect it to Claude, ChatGPT, Cursor or VS Code in one step. A free local package reads the curated positions of a raw DNA file on your own computer.
Connect the MCP server