Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

connect-mcp-server

БесплатноБез исполняемых скриптовНе проверен

Guide for connecting MCP (Model Context Protocol) servers to Claude Code with HTTP, stdio, and SSE transports. Covers installation, configuration…

ronnycodingот ronnycoding★ 20 звёзд на GitHub19 установок в других каталогах

Об этом скилле

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:

  1. Identify the server - Which service do you want to integrate?
  2. Choose transport - HTTP (remote), stdio (local), or SSE (deprecated)
  3. Gather credentials - API keys, tokens, or OAuth requirements
  4. Select scope - Local (default), project (.mcp.json), or user (cross-project)
  5. Add server - Use claude mcp add command
  6. Authenticate - Use /mcp in Claude Code for OAuth
  7. Test connection - Verify server status and available tools
  8. 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 -y flag with npx to auto-install
  • Windows requires cmd /c wrapper 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"
      }
    }
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить connect-mcp-server с