Guide

How to install an MCP server in Claude Code

One command adds a server; one more confirms it works.

AppForum editors · Nov 25, 2026

An MCP server gives Claude Code new tools, such as driving a browser or reading your issue tracker. Adding one takes a single command.

Add a local server

Local servers run as a process on your machine. From your project folder:

claude mcp add playwright npx @playwright/mcp@latest

The first word after add is the name you will see inside Claude Code. Everything after it is the command that starts the server.

Add a remote server

Remote servers are hosted by the vendor and reached over HTTP:

claude mcp add --transport http <name> <url>

If the server uses OAuth, Claude Code opens a browser window to sign in the first time you use it.

Check that it works

Start Claude Code and run /mcp. The server should be listed as connected, along with the tools it provides.

Choose who gets the server

By default a server is added for you in the current project. Use --scope project to write it to a shared .mcp.json that your team can commit, or --scope user to make it available in every project.

If it does not connect

  • Run the server command on its own in a terminal to see its error output.
  • Check that Node.js is installed if the command starts with npx.
  • Remove and re-add the server with claude mcp remove <name>.