Add an MCP server to your AI app
Every AI app that speaks MCP keeps its servers in a config file or a settings screen. Here is where each one lives, and the exact format for a local server and a remote one. Every server page in the directory fills these in for you.
Claude Code
One command in your terminal. Servers are saved per project by default; add --scope user to use one everywhere, or --scope project to share it with your team through a .mcp.json file in the repo.
A local server
claude mcp add --env API_KEY=your-key --transport stdio my-server \
-- npx -y some-mcp-serverA remote server
claude mcp add --transport http my-server https://example.com/mcpEverything after the double dash is passed to the server untouched. Run claude mcp list to see what is connected and claude mcp get my-server to check one.
Claude Desktop
Open Claude's Settings from the menu bar, go to Developer and press Edit Config. The file is claude_desktop_config.json in ~/Library/Application Support/Claude on macOS and in %APPDATA%\Claude on Windows. Restart Claude after you save it.
A local server
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["-y", "some-mcp-server"],
"env": { "API_KEY": "your-key" }
}
}
}A remote server
Settings > Connectors > Add custom connector
https://example.com/mcpLocal servers go in the config file. Remote servers are added as connectors in Settings. Logs for local servers are in ~/Library/Logs/Claude on macOS and %APPDATA%\Claude\logs on Windows.
VS Code
GitHub Copilot in VS Code reads .mcp.json at the root of your workspace for servers your team shares, and ~/.copilot/mcp-config.json for your own servers across workspaces.
A local server
{
"mcpServers": {
"my-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "some-mcp-server"]
}
}
}A remote server
{
"mcpServers": {
"my-server": {
"type": "http",
"url": "https://example.com/mcp"
}
}
}Older setups used .vscode/mcp.json with a servers key. VS Code now points new setups to the mcpServers files above.
Cursor
Create .cursor/mcp.json in a project for that project only, or ~/.cursor/mcp.json in your home folder for every project.
A local server
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["-y", "some-mcp-server"],
"env": { "API_KEY": "your-key" }
}
}
}A remote server
{
"mcpServers": {
"my-server": {
"url": "https://example.com/mcp"
}
}
}Remote servers take a url and, if the server needs one, a headers object for the API key.
Questions about MCP clients
What is an MCP client?
An MCP client is the AI app side of the connection: Claude, VS Code, Cursor or any other app that can start or reach MCP servers and let its model call their tools. The client also decides when to ask you before a tool runs.
What is the difference between a local and a remote MCP server?
A local server runs on your machine as a program your AI app starts, and talks over standard input and output. A remote server runs on someone else's infrastructure and your app connects to it by URL over HTTP, usually with an OAuth sign-in the first time.
Why doesn't my MCP server show up?
Most often the config file has a JSON error, the command isn't installed (npx needs Node.js, uvx needs uv, docker needs Docker running) or the app wasn't restarted. Run the server's command in a terminal to see its error, and check the app's MCP logs.
Can I use the same MCP server in more than one app?
Yes, that is the point of the protocol. Add the same command or URL to each app's config. Local servers start once per app, so each app runs its own copy.
New MCP servers, tested, every week.
Applied Theory, Jeff Fermin's weekly newsletter: the servers and AI plays worth your time, explained for GTM teams.