nano .claude/settings.json # add MCP server entry

Category: AI Agents & MCP

nano .claude/settings.json # add MCP server entry

Add an MCP server to Claude Code's project config

In .claude/settings.json, add to the 'mcpServers' object: {"name": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": {"GITHUB_TOKEN": "..."}}}. Claude Code connects to this server automatically when you open the project.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.