All guides

MCP explained

What is an MCP server?

MCP servers are how modern AI coding agents reach beyond their training data — pulling in live tools, data, and context through one standard protocol. Here's what that means, how it works, and how to connect one.

Last reviewed: June 2026

The short answer

The Model Context Protocol (MCP) is an open standard for connecting AI applications to external tools and data sources. An MCP server is a program that exposes a specific capability — reading files, querying a database, searching documentation, calling an API — in a format any MCP-compatible AI client can use.

Think of it as a universal adapter. Before MCP, every AI tool needed a bespoke integration for every data source. MCP standardizes that connection, so one server works across Claude, Cursor, VS Code, and any other client that speaks the protocol.

Why MCP exists

Large language models are frozen at their training cutoff and isolated from your systems. They don't know your codebase, your database schema, or today's library docs unless something feeds that context in.

MCP, introduced by Anthropic in late 2024 and since adopted across the industry, solves the integration problem the way USB solved peripherals: one protocol instead of a custom connector for every pairing. A tool builder writes one MCP server, and every MCP client can use it.

How an MCP server actually works

An MCP client — your agent — connects to an MCP server over a transport: either a local process over stdio, or a remote server over HTTP. The server advertises what it offers, and the agent calls those capabilities as needed during a task. Servers expose three kinds of things:

  • Tools: Functions the agent can call — search code, run a query, open a pull request.
  • Resources: Data the agent can read — files, records, documentation pages.
  • Prompts: Reusable templates the server exposes for common tasks.

What people use MCP servers for

The fastest-growing category is coding. Developers connect MCP servers so their agent can read the file system, drive a browser, pull production errors, query a database, or fetch current documentation — instead of guessing from stale training data.

A practical caution: connecting many servers at once floods the agent with tools and can degrade its performance. Most teams start with two or three that match their workflow.

How-to

How to connect an MCP server

  1. 1

    Pick a client and a server

    Choose an MCP-compatible client — Claude Code, Cursor, VS Code, and others — and the server you want, such as a documentation or codebase-context server.

  2. 2

    Add the server to your client config

    Local servers run as a command over stdio; remote servers connect over an HTTP endpoint, usually with an OAuth or token-based sign-in. Add the server's details to your client's MCP configuration.

  3. 3

    Let the agent call it

    Once connected, the agent discovers the server's tools and resources automatically and uses them during tasks — no copy-paste required.

Where Moxie Docs fits

Moxie Docs runs a first-party MCP server for your own codebase. Instead of letting an agent re-crawl your repository on every prompt, it serves your conventions, documentation, doc gaps, and verified commands over MCP — so Cursor, Claude Code, and Codex get accurate, source-cited context in a couple of scoped lookups.

FAQ

Frequently asked questions

Quick answers to the questions developers ask about What is an MCP server?.

What is an MCP server in simple terms?+

It's a small program that gives an AI agent a standard way to use a specific tool or data source — like reading files, searching docs, or querying a database. Any AI client that supports the Model Context Protocol can connect to it, so the same server works across Claude, Cursor, and other tools.

Who created the Model Context Protocol?+

Anthropic introduced MCP as an open standard in late 2024. It has since been adopted broadly across AI tools and IDEs, and a growing ecosystem of servers is maintained by both vendors and the community.

Is an MCP server the same as an API?+

Not quite. An API is a custom interface you integrate against one at a time. An MCP server wraps a capability in a standard protocol so any MCP-compatible agent can discover and use it without a bespoke integration.

How do I connect an MCP server to Cursor or Claude Code?+

Add the server to your client's MCP configuration — a local command for stdio servers, or an HTTP endpoint for remote ones. The agent then discovers the server's tools automatically. See our guide on the best MCP servers for coding for specific options.

Are MCP servers safe to use?+

MCP servers run with whatever access you grant them, so use trusted servers and prefer ones scoped to read-only or least-privilege access for sensitive data. Moxie Docs' MCP server, for example, is read-only and scoped per repository.

Get started

Give your agents real codebase context.

Connect a repository and Moxie Docs generates living documentation and serves it to your agents over MCP. 14-day free trial, no charge today.