mcp-setup
Set up and configure MCP (Model Context Protocol) servers with Claude Code. Use when the user wants to connect Claude Code to external tools, databases, APIs, or services via MCP. Handles HTTP, SSE, and stdio server configurations with proper authentication.
Best use case
mcp-setup is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Set up and configure MCP (Model Context Protocol) servers with Claude Code. Use when the user wants to connect Claude Code to external tools, databases, APIs, or services via MCP. Handles HTTP, SSE, and stdio server configurations with proper authentication.
Teams using mcp-setup should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/mcp-setup/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How mcp-setup Compares
| Feature / Agent | mcp-setup | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Set up and configure MCP (Model Context Protocol) servers with Claude Code. Use when the user wants to connect Claude Code to external tools, databases, APIs, or services via MCP. Handles HTTP, SSE, and stdio server configurations with proper authentication.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# MCP Setup Skill
This skill helps configure Model Context Protocol (MCP) servers to connect Claude Code to external tools, databases, and APIs.
## What is MCP?
MCP (Model Context Protocol) is an open-source standard for AI-tool integrations. MCP servers give Claude Code access to:
- Issue trackers (Jira, GitHub Issues)
- Monitoring tools (Sentry, Statsig)
- Databases (PostgreSQL, MySQL)
- Design tools (Figma)
- Communication (Slack, Gmail)
- And hundreds more
## Server Types
### 1. HTTP Servers (Recommended for remote)
Cloud-based services, most widely supported.
```bash
claude mcp add --transport http <name> <url>
# Example: Connect to Notion
claude mcp add --transport http notion https://mcp.notion.com/mcp
# With Bearer token authentication
claude mcp add --transport http secure-api https://api.example.com/mcp \
--header "Authorization: Bearer your-token"
```
### 2. SSE Servers (Deprecated)
Use HTTP instead where available.
```bash
claude mcp add --transport sse <name> <url>
# Example: Connect to Asana
claude mcp add --transport sse asana https://mcp.asana.com/sse
```
### 3. Stdio Servers (Local processes)
Run as local processes on your machine.
```bash
claude mcp add --transport stdio <name> <command> [args...]
# Example: Airtable server
claude mcp add --transport stdio airtable --env AIRTABLE_API_KEY=YOUR_KEY \
-- npx -y airtable-mcp-server
# Example: PostgreSQL database
claude mcp add --transport stdio db -- npx -y @bytebase/dbhub \
--dsn "postgresql://user:pass@localhost:5432/mydb"
```
**Note**: The `--` separates Claude's flags from the server command.
## Configuration Scopes
| Scope | Storage | Use Case |
|-------|---------|----------|
| `local` | `~/.claude.json` (project path) | Personal, project-specific |
| `project` | `.mcp.json` in project root | Team-shared via git |
| `user` | `~/.claude.json` (global) | Personal across all projects |
```bash
# Add to specific scope
claude mcp add --transport http api --scope project https://api.example.com
```
## Management Commands
```bash
# List all configured servers
claude mcp list
# Get details for a specific server
claude mcp get <name>
# Remove a server
claude mcp remove <name>
# Check server status (in Claude Code)
/mcp
```
## Authentication
For OAuth 2.0 authentication:
1. Add the server: `claude mcp add --transport http sentry https://mcp.sentry.dev/mcp`
2. In Claude Code, run: `/mcp`
3. Select "Authenticate" and follow browser prompts
## Plugin MCP Servers
Plugins can bundle MCP servers. Create `.mcp.json` at plugin root:
```json
{
"mcpServers": {
"plugin-server": {
"command": "${CLAUDE_PLUGIN_ROOT}/servers/my-server",
"args": ["--config", "${CLAUDE_PLUGIN_ROOT}/config.json"],
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}
```
Or inline in `plugin.json`:
```json
{
"name": "my-plugin",
"mcpServers": {
"plugin-api": {
"type": "http",
"url": "https://api.example.com/mcp"
}
}
}
```
## Project Shared Configuration
For team-shared servers, create `.mcp.json` in project root:
```json
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
},
"database": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
}
}
}
```
### Environment Variable Expansion
Supported in `.mcp.json`:
- `${VAR}` - Value of environment variable
- `${VAR:-default}` - Value or default if not set
Works in: `command`, `args`, `env`, `url`, `headers`
## Popular MCP Servers
| Server | Type | Install Command |
|--------|------|-----------------|
| GitHub | HTTP | `claude mcp add --transport http github https://api.githubcopilot.com/mcp/` |
| Sentry | HTTP | `claude mcp add --transport http sentry https://mcp.sentry.dev/mcp` |
| Notion | HTTP | `claude mcp add --transport http notion https://mcp.notion.com/mcp` |
| Postgres | stdio | `claude mcp add --transport stdio db -- npx -y @bytebase/dbhub --dsn "..."` |
| Filesystem | stdio | `claude mcp add --transport stdio fs -- npx -y @modelcontextprotocol/server-filesystem /path` |
## Using MCP in Claude Code
### Reference Resources
Type `@` to see available resources from MCP servers:
```
> Analyze @github:issue://123
```
### Execute Prompts
MCP prompts become slash commands:
```
> /mcp__github__list_prs
> /mcp__jira__create_issue "Bug title" high
```
## Troubleshooting
### Windows Users
Use `cmd /c` wrapper for npx:
```bash
claude mcp add --transport stdio my-server -- cmd /c npx -y @some/package
```
### Output Limits
Set `MAX_MCP_OUTPUT_TOKENS` for large outputs:
```bash
export MAX_MCP_OUTPUT_TOKENS=50000
claude
```
### Timeout Issues
Increase startup timeout:
```bash
MCP_TIMEOUT=10000 claude
```
## Setup Checklist
When setting up a new MCP server:
- [ ] Choose appropriate transport (HTTP for remote, stdio for local)
- [ ] Select correct scope (local/project/user)
- [ ] Configure authentication if required
- [ ] Set necessary environment variables
- [ ] Test with `/mcp` command
- [ ] Verify tools are availableRelated Skills
setup-mcp-auth
Configure authentication for an existing FastMCP server
mypy-setup
Set up Mypy type checking configuration for a Python project
django-project-setup
Set up a new Django 6.0 project with modern tooling (uv, direnv, HTMX, OAuth, DRF, testing). Use when the user wants to create a Django project from scratch with production-ready configuration.
parallel-setup
One-time setup of parallel/ directory for multi-agent development
zod
Zod schema validation patterns and type inference. Auto-loads when validating schemas, parsing data, validating forms, checking types at runtime, or using z.object/z.string/z.infer in TypeScript.
typescript-import-style
Merge-friendly import formatting (one-per-line, alphabetical). Auto-loads when writing TypeScript/JavaScript imports to minimize merge conflicts in parallel development. Enforces consistent grouping and sorting.
fastmcp
FastMCP TypeScript framework patterns for MCP servers. Auto-loads when building MCP servers, creating tools/resources/prompts, implementing authentication, configuring transports, or working with FastMCP in TypeScript.
add-mcp-tool
Add a new tool to an existing FastMCP server with guided configuration
add-mcp-resource
Add a new resource or resource template to an existing FastMCP server
plan-with-team
Validate plan file ownership
privacy-compliance
GDPR, CCPA, and privacy compliance guidance for data protection. Use when handling personal data, implementing consent management, or ensuring regulatory compliance across jurisdictions.
oauth
OAuth 2.0 and OpenID Connect implementation patterns. Use when implementing authentication, authorization flows, or integrating with OAuth providers like Google, GitHub, or custom identity providers.