AI explained

What is an MCP server?

A plug-in for AI apps, explained in plain words, with copy-ready setups for Claude Code, Claude Desktop and Cursor.

Short answer

A plug-in for AI apps.

An MCP server is a small program that gives an AI app such as Claude, ChatGPT or Cursor new tools and data through the Model Context Protocol, an open standard. It runs on your computer or at a web address, and the app asks it what it can do. Pick your app below to copy a ready setup for six popular servers.

What a server offers

3building blocks

Tools, resources, prompts
Tool

Add an MCP server to your app

Checked November 6, 2026

Pick your app. The steps show where the setup goes, and each row is the server’s setup from its own docs, in the format your app’s docs give. Replace YOUR_GITHUB_PAT, YOUR_API_KEY (a free key from Context7) and folder paths with your own before you save.

Your appWhere the server goes
  1. 01Open a terminal in your project folder, outside any Claude Code session, and run a command below. The server is saved for this project and only for you; add the scope option set to user to load it in every project.
  2. 02Start claude and type /mcp. A check mark next to the server means it connected; claude mcp list shows every server from the terminal.
  3. 03Claude Code saves a command without checking your token, so a wrong key shows up only as a failed connection in /mcp.

Filesystem

claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/folder

Fetch

claude mcp add fetch -- uvx mcp-server-fetch

Memory

claude mcp add memory -- npx -y @modelcontextprotocol/server-memory

Playwright

claude mcp add playwright npx @playwright/mcp@latest

GitHub

claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'

Context7

claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp
  1. 01Open the Claude menu in your computer’s menu bar, not the settings inside the chat window, and select Settings. Go to Developer and select Edit Config to open claude_desktop_config.json.
  2. 02Paste a config below and save. Each config is a whole file: for two servers, put both entries inside one mcpServers block.
  3. 03Quit Claude Desktop completely and open it again. The server shows up under Connectors, and Claude asks before each action.

Filesystem, Memory, Playwright and Context7 need Node.js, Fetch needs uv, and this GitHub setup needs Docker and opens a GitHub sign-in on first use. A server with a web address goes in through Customize, then Connectors, + Add, Add custom connector instead.

Filesystem

{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/username/Desktop" ] } } }

Fetch

{ "mcpServers": { "fetch": { "command": "uvx", "args": [ "mcp-server-fetch" ] } } }

Memory

{ "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } }

Playwright

{ "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest" ] } } }

GitHub

{ "mcpServers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-p", "127.0.0.1:8085:8085", "-e", "GITHUB_OAUTH_CALLBACK_PORT", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_OAUTH_CALLBACK_PORT": "8085" } } } }

Context7

{ "mcpServers": { "context7": { "command": "npx", "args": [ "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY" ] } } }
  1. 01Create or open mcp.json: .cursor/mcp.json in your project for one project, or ~/.cursor/mcp.json in your home folder for all of them.
  2. 02Paste a config below and save. For two servers, put both entries inside one mcpServers block.
  3. 03Open Customize in the sidebar and check that the server is switched on. By default, Cursor asks for approval before it runs an MCP tool.

Filesystem

{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "${workspaceFolder}" ] } } }

Fetch

{ "mcpServers": { "fetch": { "command": "uvx", "args": [ "mcp-server-fetch" ] } } }

Memory

{ "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } }

Playwright

{ "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest" ] } } }

GitHub

{ "mcpServers": { "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } }

Context7

{ "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } }

What is an MCP server in the Model Context Protocol?

MCP stands for Model Context Protocol. The official MCP documentation calls it an open-source standard for connecting AI applications to external systems, and compares it to a USB-C port: one plug shape instead of a custom cable for every device. Anthropic’s help center says Anthropic created it. An MCP server is the program on the other end of that plug: it offers an AI app access to files, a database, a browser or a service such as GitHub. In other words, the MCP server exposes data sources and external services to AI models and AI assistants: a file system, a knowledge base, a company app.

The MCP architecture overview names three roles, so an MCP server and client always work as a pair:

  • Host: the AI app you use, such as Claude Code, Claude Desktop, Cursor or Visual Studio Code.
  • Client: a connector inside the host. The host opens one client for each server, and each client keeps its own connection.
  • Server: the program that provides context and actions to the client, whether it runs on your computer or on someone else’s.

A server offers three kinds of building blocks, per the MCP docs on servers:

Building blockWhat it isWho decides to use it
ToolsActions the AI can run: search flights, send a message, edit a fileThe model
ResourcesRead-only data for context: file contents, a database schema, docsThe app
PromptsReady instruction templates, such as Summarize my meetingsYou

MCP server meaning: MCP vs API

An API is the interface one service offers to programs, and every API has its own addresses, formats and sign-in. An MCP server usually sits in front of such an API and presents it in the one shape every MCP app understands. GitHub’s MCP server, for example, gives AI tools access to repositories, issues and pull requests that GitHub’s API already serves.

The difference is discovery. An app connected to an MCP server asks it for its list of tools, each with a name, a description and a schema for its inputs, and the model decides when to call one. Messages use JSON-RPC 2.0 under the hood. So a developer builds the server once, and it works in Claude, ChatGPT, Cursor and other MCP apps, which the MCP docs call the point of the standard.

How an MCP server works: local stdio vs remote MCP servers

MCP defines two standard ways for a client to reach a server, called transports:

  • stdio (local). The app starts the server as a small program on your computer and talks to it through its standard input and output. It opens no network port and usually serves one app. Most configs in the tool above are this kind: a command such as npx or uvx plus a package name.
  • Streamable HTTP (remote). The server runs on its own at a web address and can serve many users. It signs you in with a token, an API key or OAuth, which the MCP docs recommend. GitHub’s and Context7’s hosted servers work this way. An older remote transport, SSE, is still supported by Claude Code and Cursor.

Under the current specification, dated July 28, 2026, a client can first ask a server what it supports, then lists its tools and calls them as the conversation needs. One detail for Claude users: custom connectors added on claude.ai or in Claude Desktop connect from Anthropic’s cloud, so a remote server must be reachable from the public internet. Local servers in claude_desktop_config.json use your own network.

Key pointA local MCP server is a program that runs with your user account’s permissions. Adding one is like installing an app, so add only servers whose makers you know.

The six servers in the tool above, with what each one does according to its own README. Checked November 6, 2026.

ServerWhat it doesMade by
FilesystemReads, writes, moves and searches files in folders you allowMCP project, reference server
FetchFetches a web page and turns it into MarkdownMCP project, reference server
MemoryKeeps facts about you in a local knowledge graph across chatsMCP project, reference server
Playwright MCPDrives a web browser through page snapshots, no screenshots neededMicrosoft
GitHub MCP ServerRepositories, code, issues, pull requests and workflowsGitHub
Context7Current library docs and code examples for coding agentsUpstash

The MCP servers repository says its reference servers are examples for learning, not production-ready, and that you should judge the security yourself. Several older reference servers, including GitHub, Slack and PostgreSQL, are archived: GitHub’s guide says the old @modelcontextprotocol/server-github package is no longer supported since April 2025, so use GitHub’s own server. For more servers, the MCP Registry lists published ones, and Anthropic and Cursor keep their own directories.

How to add an MCP server to Claude Code, Claude Desktop and Cursor

Claude Code. Everything goes through claude mcp add. For a remote server, give the transport option the value http, then a name and the URL. For a local server, give a name, then a double hyphen, then the command that starts the server. Anthropic’s docs list three scopes:

  • Local (default): this project only, private to you, stored in ~/.claude.json.
  • Project: saved in .mcp.json in the project folder and shared through version control. Claude Code asks for approval before it uses these servers.
  • User: all your projects, private to you.

If a server’s README only has a JSON block for another app, pass the object inside mcpServers to claude mcp add-json. Use claude mcp get with the server name to check one server, and claude mcp remove to delete it.

Claude Desktop. Local servers live in claude_desktop_config.json: in ~/Library/Application Support/Claude on a Mac, %APPDATA%\Claude on Windows and ~/.config/Claude on Linux. Paths in the file must be absolute. On Windows, the Filesystem and Memory READMEs start npx through cmd /c. If a server does not appear, the MCP docs point to the logs: mcp.log and one log file per server, in ~/Library/Logs/Claude on a Mac. Remote servers are added as custom connectors; Anthropic’s help center says Free plans can add one custom connector.

Cursor. Official servers install with one click from the Cursor Marketplace under Customize; anything else goes in mcp.json. Cursor fills in variables such as ${env:NAME} for a key from your environment and ${workspaceFolder} for the project folder, so secrets stay out of the file. To debug, open the Output panel and choose MCP Logs.

Are MCP servers safe? Access control and trust

They are as safe as the server and the permissions you give it. What the official docs say, read November 6, 2026:

  • A local server can do what you can do. The MCP tutorial for Claude Desktop warns that the Filesystem server runs with your user account’s permissions. The MCP security best practices list arbitrary code execution and data loss as risks of local servers from untrusted sources.
  • Prompt injection. Claude Code’s docs warn that servers which fetch outside content can expose you to prompt injection. Anthropic’s help center adds that a malicious server may hide instructions that push Claude into actions you did not ask for, and that a server’s behavior can change after an update.
  • Trust only servers you know. Anthropic says to connect only servers built by organizations you trust and to review requested permissions. Cursor’s docs say to verify the source, use API keys with the fewest permissions, and read the code for critical setups.
  • Keep the approvals on. Claude Desktop asks before each action, and Cursor asks by default. Anthropic advises choosing Allow always only for a server and tool you trust to run unsupervised.

Some servers add their own limits: Filesystem has a read-only option, and Fetch refuses private and internal addresses by default. Microsoft’s Playwright README says plainly that Playwright MCP is not a security boundary.

How to build your own MCP server

The MCP project publishes official SDKs in ten languages. Tier 1, the most complete: TypeScript, Python, C#, Go, Rust and Ruby. Tier 2: Java. Tier 3: Swift, PHP and Kotlin. Each one can build servers with tools, resources and prompts over local and remote transports. To test a server without an AI app, the project offers the MCP Inspector, which starts your server and lets you call its tools by hand. Claude Code’s docs also point to an official plugin, mcp-server-dev, that has Claude scaffold a server for you.

RelatedLive check: is Claude Code down right now?24/7Rule out an outage before you debug a server that will not connect.

FAQ

What is an MCP server in simple terms?

A plug-in for AI apps. It is a small program that gives Claude, ChatGPT, Cursor or another MCP app new abilities, such as reading your files or opening issues on GitHub, through one shared standard.

What makes up an MCP server?

Its tools, which the AI can run; its resources, which the app can read for context; and its prompts, which you can pick as templates. Plus a transport: stdio on your computer or HTTP at a web address.

What is a remote MCP server?

A server that runs at a web address instead of on your computer, over the Streamable HTTP transport. It can serve many users and usually asks you to sign in with OAuth or a token. GitHub and Context7 both host one.

What are MCP connectors?

Connectors is Claude’s name for MCP servers you link to your Claude account. Custom connectors are remote MCP servers you add yourself under Customize, then Connectors; Anthropic’s help center says they work on Free plans too, with one custom connector.

What is MCP in agentic AI?

An AI agent works through steps on its own, and MCP is how it reaches tools along the way: the agent asks each server for its tools and calls them when a step needs one. Claude Code, for example, can review pull requests and create issues through GitHub’s MCP server.

What is an example of an MCP server?

The Filesystem server lets Claude Desktop read and organize files in folders you allow. Playwright MCP lets an AI app click through a website in a real browser. Both are in the tool above.

Which apps support MCP servers?

The MCP docs name Claude, ChatGPT, Visual Studio Code and Cursor among others. Server READMEs add more, such as Windsurf, Goose and Cline.

Sources

  1. Model Context Protocol docs, What is the Model Context Protocol, Architecture overview, Understanding MCP servers and SDKs, read November 6, 2026
  2. Model Context Protocol docs, Connect to local MCP servers (Claude Desktop tutorial), read November 6, 2026
  3. Model Context Protocol docs, Security Best Practices, read November 6, 2026
  4. Claude Code docs, Connect Claude Code to tools via MCP, read November 6, 2026
  5. Claude Help Center, Get started with custom connectors using remote MCP, read November 6, 2026
  6. Cursor docs, Model Context Protocol (MCP), read November 6, 2026
  7. GitHub, modelcontextprotocol/servers README and the Filesystem, Fetch and Memory READMEs, read November 6, 2026
  8. GitHub, microsoft/playwright-mcp README, read November 6, 2026
  9. GitHub, github/github-mcp-server README and its install guides for Claude and Cursor, read November 6, 2026
  10. GitHub, upstash/context7 README and Context7 docs, MCP Clients, read November 6, 2026

Spotted a mistake? Write to support@gptx.io and we will check it.

Keep reading