connect-mcp-server
БесплатноБез исполняемых скриптовНе проверенGuide for connecting MCP (Model Context Protocol) servers to Claude Code with HTTP, stdio, and SSE transports. Covers installation, configuration…
Об этом скилле
Connect MCP Server Guide
This skill helps you connect MCP (Model Context Protocol) servers to Claude Code, enabling integrations with external services like GitHub, Notion, databases, project management tools, and custom APIs.
Quick Start
When connecting an MCP server, follow this workflow:
- Identify the server - Which service do you want to integrate?
- Choose transport - HTTP (remote), stdio (local), or SSE (deprecated)
- Gather credentials - API keys, tokens, or OAuth requirements
- Select scope - Local (default), project (.mcp.json), or user (cross-project)
- Add server - Use
claude mcp addcommand - Authenticate - Use
/mcpin Claude Code for OAuth - Test connection - Verify server status and available tools
- Use resources/prompts - Access via
@and/prefixes
What is MCP?
Model Context Protocol (MCP) is a standard for connecting AI assistants to external services and data sources. MCP servers provide:
- Tools: Functions Claude can execute (e.g., create GitHub issue)
- Resources: Data Claude can reference (e.g., @github:issue://123)
- Prompts: Pre-built commands (e.g., /mcp__github__review-pr)
Transport Protocols
1. HTTP Servers (Recommended)
Best for: Remote cloud-based services Protocol: HTTP/HTTPS with JSON-RPC
Basic syntax:
claude mcp add --transport http <name> <url>
Examples:
Notion integration:
claude mcp add --transport http notion https://mcp.notion.com/mcp
GitHub integration:
claude mcp add --transport http github https://mcp.github.com
Custom API with authentication:
claude mcp add --transport http secure-api https://api.example.com/mcp \
--header "Authorization: Bearer your-token-here"
Multiple headers:
claude mcp add --transport http api https://api.example.com/mcp \
--header "Authorization: Bearer token" \
--header "X-API-Version: v2"
Advantages:
- No local installation required
- Works across networks
- Managed by service provider
- Automatic updates
- OAuth 2.0 support
2. Stdio Servers (Local)
Best for: Local tools requiring system access Protocol: Standard input/output (stdin/stdout)
Basic syntax:
claude mcp add --transport stdio <name> <command> [args...]
Examples:
Using npx (recommended for Node.js servers):
claude mcp add --transport stdio filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/directory
With environment variables:
claude mcp add --transport stdio airtable \
--env AIRTABLE_API_KEY=your-key-here \
-- npx -y airtable-mcp-server
Direct executable:
claude mcp add --transport stdio custom-server -- /usr/local/bin/my-server --arg1 value1
Windows-specific (requires cmd /c wrapper):
claude mcp add --transport stdio github-local -- cmd /c npx -y @modelcontextprotocol/server-github
Python server:
claude mcp add --transport stdio python-server -- python3 /path/to/server.py
Advantages:
- Direct file system access
- No network latency
- Full control over installation
- Works offline
- Can integrate system utilities
Important notes:
- The
--separator is required before the command - Use
-yflag with npx to auto-install - Windows requires
cmd /cwrapper for npx
3. SSE Servers (Deprecated)
Status: Deprecated - use HTTP servers instead
Syntax (if needed):
claude mcp add --transport sse <name> <url>
Note: SSE (Server-Sent Events) transport is being phased out. Migrate to HTTP servers where available.
Configuration Scopes
Local Scope (Default)
Storage: User settings (not shared) Use for: Personal project-specific servers
claude mcp add --transport http notion https://mcp.notion.com/mcp
No --scope flag means local scope.
Project Scope
Storage: .mcp.json in project root (shared via git)
Use for: Team-wide integrations
claude mcp add --transport http github https://mcp.github.com --scope project
Creates: .mcp.json file:
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://mcp.github.com"
}
}
}
Important: Claude Code prompts for approval before using project-scoped servers from .mcp.json files for security.
User Scope
Storage: User settings (cross-project) Use for: Servers you use across all projects
claude mcp add --transport stdio filesystem \
--scope user \
-- npx -y @modelcontextprotocol/server-filesystem ~/Documents
Available in all projects on your machine.
Manual Configuration (.mcp.json)
HTTP Server Configuration
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://mcp.github.com",
"headers": {
"Authorization": "Bearer ${GITHUB_TOKEN}",
"X-Custom-Header": "value"
}
}
Установить connect-mcp-server в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл connect-mcp-server?
Guide for connecting MCP (Model Context Protocol) servers to Claude Code with HTTP, stdio, and SSE transports. Covers installation, configuration, authentication, environment variables, and security. Use when the user wants to connect MCP servers, add integrations, configure external services, or mentions MCP, servers, integrations, or external tools.
Как установить скилл connect-mcp-server?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл connect-mcp-server запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic