get/mcp/indexSearch ⌘K

How to add an MCP server to Claude Code

To add an MCP server to Claude Code, copy the claude mcp add command for the server from its page on getmcpindex.

Steps

  1. Copy the claude mcp add command for the server from its page on getmcpindex.
  2. Run it in your terminal. Use --transport stdio for a local package and --transport http for a hosted URL.
  3. 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/mcp

From 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.