MCP servers
Wire external tools into Claude Code over the Model Context Protocol.
MCP servers expose tools, resources, and prompts to Claude Code. Connect to a database, your issue tracker, your design system, or a custom service.
All mcp servers questions (3)
-
How do I add, remove, and debug MCP servers from the command line?
claude mcp add takes transport (http/stdio/sse), scope (local/project/user), and env vars. All options must come before the server name. mcpServers in settings.json is silently ignored: use .mcp.json or the CLI instead.
-
How do I build a small MCP server my team can use?
Use @modelcontextprotocol/sdk with stdio transport for local servers and Streamable HTTP for remote. Tools need a name, a description (what the LLM reads), and a Zod input schema. Wire to Claude Code with `claude mcp add` or a `.mcp.json` entry.
-
How do I let Claude query my Postgres database?
Run a Postgres MCP server through a read-replica with a role that has only the column-level SELECT grants you actually want, plus row-level security on every multi-tenant table. The npm reference server is archived; vendor a known-good copy or write a thin wrapper.