To add an MCP server to Claude Code, copy the claude mcp add command for the server from its page on getmcpindex.
Steps
- Copy the
claude mcp addcommand for the server from its page on getmcpindex. - Run it in your terminal. Use
--transport stdiofor a local package and--transport httpfor a hosted URL. - Pass required secrets with
--env NAME=value(local) or--header "Name: value"(remote).
Checked against Claude Code's official MCP documentation on 2026-12-01.
Copy-paste examples
Example: Playwright MCP (local package)
Claude Code
claude mcp add --transport stdio playwright-mcp -- npx -y @playwright/mcpFrom the Playwright MCP server page.
Example: GitHub (hosted (remote) server)
Claude Code
claude mcp add --transport http github-mcp-server https://api.githubcopilot.com/mcp/From the GitHub server page.
Find a server
Every server page on getmcpindex has a ready-made setup for Claude Code under Set up in your MCP client. Search all servers, browse categories or remote servers.