← All articles

Claude MCP Setup Guide

June 15, 2026·5 min read·MCPForge

Claude MCP Setup Guide

This guide walks through connecting Claude to an MCP server. Use the local Claude Desktop configuration flow when the server runs on your machine, and use Claude's connector flow when the MCP server is remote and reachable over HTTPS.

The main decision is the transport:

Setup typeBest forConfiguration pattern
Local stdio serverFilesystem tools, local scripts, private developer utilitiesAdd a command and args entry in claude_desktop_config.json
Remote MCP serverHosted APIs, SaaS connectors, shared team integrationsAdd the remote MCP URL through Claude's connector settings
Claude Code workflowDeveloper CLI sessions and project-scoped toolsUse claude mcp add or project MCP configuration

Prerequisites

  • Claude Desktop installed and updated if you are configuring a local server.
  • A working MCP server, either a local command or a remote HTTPS endpoint.
  • Any required API keys or OAuth access configured outside the chat prompt.
  • A low-risk read-only tool you can use for the first verification call.

Step 1: Choose Local or Remote

Use a local stdio server when Claude needs controlled access to local files or developer tools. Claude Desktop can start these servers from a JSON configuration file.

Use a remote MCP server when the server is hosted on the internet, shared by a team, or connected to a SaaS application. Remote servers should use HTTPS and should keep authentication on the server or connector side.

Step 2: Configure a Local Claude Desktop Server

Claude Desktop's local configuration file is located at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

A local stdio configuration uses a command and arguments:

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

Only grant local filesystem access to directories you are comfortable with Claude reading or modifying.

Step 3: Configure a Remote MCP Server

For a hosted API-backed MCP server, add the remote server URL through Claude's connector settings. The URL should be the MCP endpoint provided by the server owner, not a generic website URL or a REST API base URL.

Remote servers commonly require OAuth, API keys, or another authentication flow. Complete authentication through the connector flow instead of pasting secrets into chat.

Step 4: Restart or Reconnect Claude

After changing a local config file, fully quit and restart Claude Desktop so it can load the server. For remote connectors, finish the connector setup flow and confirm the server appears in Claude's connector list.

Step 5: Verify the Connection

Start with a low-risk request:

"What tools do you have available?"

Then run one read-only tool call. If tools do not appear, check:

  • The JSON config is valid.
  • The command exists on your system path.
  • All local paths are absolute.
  • Required environment variables are available to Claude Desktop.
  • The remote URL is the MCP endpoint and uses HTTPS.
  • Authentication has completed successfully.

Common Issues

ProblemLikely causeFix
Server does not appearClaude Desktop has not restarted or the config file is invalidRestart Claude and validate the JSON file
spawn ENOENTThe command is not available to Claude's environmentUse an absolute path or fix PATH/env settings
Tools appear but calls failServer error, missing credentials, or invalid argumentsCheck MCP logs and test the server outside Claude
Remote connector failsWrong endpoint URL, auth failure, or unsupported transportConfirm the provider's current MCP endpoint and auth flow

Security Checklist

  • Expose the smallest set of tools Claude needs.
  • Prefer read-only tools for the first connection test.
  • Keep API keys out of prompts and client-visible config when possible.
  • Require approval for write, delete, billing, or admin operations.
  • Review MCP logs after the first successful tool call.

Official Sources

Want to analyze your API security?

Import your OpenAPI spec and generate a Security Report automatically.

Next Steps

After Claude can see the server, review each exposed tool before using it with production data. For production deployments, combine tool scoping, credential isolation, approval workflows, and audit logging before enabling destructive operations.

Frequently Asked Questions

Can Claude Desktop connect to local MCP servers?

Yes. Claude Desktop can start local stdio MCP servers from claude_desktop_config.json, commonly using a command such as npx, node, or python with explicit arguments.

Can Claude connect to remote MCP servers?

Yes. Remote MCP servers should be added through Claude's connector settings with the full HTTPS MCP endpoint and the required authentication flow.

Where is the Claude Desktop MCP config file?

On macOS it is usually ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows it is usually %APPDATA%\Claude\claude_desktop_config.json.

Why does my Claude MCP server not show up?

Common causes include invalid JSON, not restarting Claude Desktop, a missing command on PATH, relative local paths, missing environment variables, or a remote URL that is not the actual MCP endpoint.

Should API keys go in Claude prompts?

No. Keep secrets in the MCP server, connector configuration, environment variables, or a secret store rather than placing credentials in prompts.

Check your MCP security posture

Generate a Security Score, detect risky tools, and review permissions before exposing APIs to AI agents.