ai:claude-code:add-mcp-servers
Add MCP servers in Claude Code
claude mcp add context7 -- npx -y @upstash/context7-mcp@latest claude mcp add my_server -- python /path/to/server.py <args>
claude mcp add localmcp -- python3 /mnt/c/tools/mcp_server.py
All of these are stdio mcps, there is another type: http mcp with different syntax
– (two minus) is an argument separator
after add keyword is the name of the mcp server (can be any name)
after python script you can add arguments to that script (args)
To view all mcps:
claude mcp list
To remove an mcp:
claude mcp remove mcpname
ai/claude-code/add-mcp-servers.txt · Last modified: 2025/06/22 14:48 by odefta