Learn how to connect Claude Code to your tools with the Model Context Protocol.
claude mcp add --transport sse asana https://mcp.asana.com/sse
claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse
claude mcp add clickup --env CLICKUP_API_KEY=YOUR_KEY --env CLICKUP_TEAM_ID=YOUR_ID -- npx -y @hauptsache.net/clickup-mcp
claude mcp add --transport http intercom https://mcp.intercom.com/mcp
claude mcp add --transport sse linear https://mcp.linear.app/sse
claude mcp add --transport http notion https://mcp.notion.com/mcp
claude mcp add airtable --env AIRTABLE_API_KEY=YOUR_KEY -- npx -y airtable-mcp-server
claude mcp add --transport http paypal https://mcp.paypal.com/mcp
claude mcp add --transport sse plaid https://api.dashboard.plaid.com/mcp/sse
claude mcp add --transport sse square https://mcp.squareup.com/sse
claude mcp add --transport http stripe https://mcp.stripe.com
--scope
flag to specify where the configuration is stored:
local
(default): Available only to you in the current project (was called project
in older versions)project
: Shared with everyone in the project via .mcp.json
fileuser
: Available to you across all projects (was called global
in older versions)--env
flags (e.g., --env KEY=value
)MCP_TIMEOUT=10000 claude
sets a 10-second timeout)/mcp
to authenticate with remote servers that require OAuth 2.0 authenticationnpx
require the cmd /c
wrapper to ensure proper execution.cmd /c
wrapper, you’ll encounter “Connection closed” errors because Windows cannot directly execute npx
..mcp.json
file at your project’s root directory. This file is designed to be checked into version control, ensuring all team members have access to the same MCP tools and services. When you add a project-scoped server, Claude Code automatically creates or updates this file with the appropriate configuration structure.
.mcp.json
file follows a standardized format:
.mcp.json
files. If you need to reset these approval choices, use the claude mcp reset-project-choices
command.
.mcp.json
.mcp.json
files, allowing teams to share configurations while maintaining flexibility for machine-specific paths and sensitive values like API keys.
Supported syntax:
${VAR}
- Expands to the value of environment variable VAR
${VAR:-default}
- Expands to VAR
if set, otherwise uses default
command
- The server executable pathargs
- Command-line argumentsenv
- Environment variables passed to the serverurl
- For SSE/HTTP server typesheaders
- For SSE/HTTP server authenticationAdd the server that requires authentication
Use the /mcp command within Claude Code
/mcp
menu to revoke accessAdd an MCP server from JSON
Verify the server was added
--scope global
to add the server to your global configuration instead of the project-specific oneImport servers from Claude Desktop
Select which servers to import
Verify the servers were imported
--scope global
flag to add servers to your global configurationserver_1
)List available resources
@
in your prompt to see available resources from all connected MCP servers. Resources appear alongside files in the autocomplete menu.Reference a specific resource
@server:protocol://resource/path
to reference a resource:Multiple resource references
Discover available prompts
/
to see all available commands, including those from MCP servers. MCP prompts appear with the format /mcp__servername__promptname
.Execute a prompt without arguments
Execute a prompt with arguments