Command Palette

Search for a command to run...

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

model-context-protocol

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

Model Context Protocol (MCP) - Open standard for connecting AI applications to external data sources, tools, and systems. Use for building MCP servers (tools…

enunoот enuno★ 17 звёзд на GitHub15 установок в других каталогах

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

Model Context Protocol Skill

The Model Context Protocol (MCP) is an open-source standard that provides a universal way to connect AI-powered applications to external data sources, tools, and systems. Think of MCP as a USB-C port for AI applications - a standardized interface that enables seamless integration regardless of the underlying implementation.

Core Value Proposition: Build once, connect anywhere. MCP servers work with any MCP-compatible AI application, eliminating the need for custom integrations per application.

When to Use This Skill

This skill should be triggered when:

  • Building MCP servers to expose tools, resources, or prompts
  • Implementing MCP clients in AI applications
  • Understanding MCP protocol architecture and message flow
  • Creating tool handlers for AI agent operations
  • Implementing resource providers for data access
  • Building prompt templates for AI interactions
  • Integrating external services with AI applications
  • Debugging MCP server/client communication

Protocol Overview

The AI Integration Paradox

MCP addresses a fundamental challenge: AI systems need dynamic, context-aware access to resources, but traditional APIs were built for predictable workflows.

Traditional APIs assume:

  • Known endpoints at design time
  • Predictable request patterns
  • Static data schemas

AI systems require:

  • Dynamic Discovery - Identify needed resources at runtime
  • Rich Context Exchange - Metadata and relationships flow with data
  • Secure Sandboxing - Controlled access without direct AI permissions
  • Bidirectional Communication - Systems ask questions, not just consume

The Problem MCP Solves

Before MCP:

  • Each AI application builds custom integrations for each data source
  • Every data source implements provider-specific APIs
  • N applications × M data sources = N×M integrations

After MCP:

  • One protocol specification
  • N + M implementations needed
  • Any server works with any client

The USB-C Analogy

Just as USB-C provides a universal connector for devices:

  • MCP Host = Device (AI application like Claude Desktop)
  • MCP Client = Port (connection manager within the host)
  • MCP Server = Peripheral (service providing context)

Mediated Access Pattern (Security Broker Model)

"The Host mediates ALL AI-resource interactions"

┌────────────────────────────────────────────────────────┐
│                     HOST APPLICATION                    │
│            (Claude Desktop, IDE, Custom App)            │
│                                                        │
│   ┌──────────┐   ┌──────────┐   ┌──────────┐         │
│   │ Client 1 │   │ Client 2 │   │ Client 3 │         │
│   │   ↕      │   │   ↕      │   │   ↕      │         │
│   │Server A  │   │Server B  │   │Server C  │   1:1   │
│   └──────────┘   └──────────┘   └──────────┘  mapping │
└────────────────────────────────────────────────────────┘

Key security principles:

  • Each Client-Server pair is isolated
  • Host acts as central authority
  • No direct AI-to-resource access
  • Prevents resource interference

Architecture

Core Components

┌─────────────────────────────────────────────────────────────┐
│                    MCP ARCHITECTURE                          │
└─────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────┐
│                        HOST (AI App)                          │
│  ┌────────────────────────────────────────────────────────┐  │
│  │                    MCP CLIENT                           │  │
│  │  • Maintains 1:1 connections with servers              │  │
│  │  • Handles protocol negotiation                         │  │
│  │  • Routes messages to/from servers                      │  │
│  └───────────┬────────────────────────┬───────────────────┘  │
│              │                        │                       │
└──────────────┼────────────────────────┼───────────────────────┘
               │ stdio                  │ HTTP
               ▼                        ▼
┌──────────────────────┐    ┌──────────────────────┐
│    LOCAL SERVER      │    │   REMOTE SERVER      │
│  (subprocess)        │    │   (network)          │
│                      │    │                      │
│  • Tools             │    │  • Tools             │
│  • Resources         │    │  • Resources         │
│  • Prompts           │    │  • Prompts           │
└──────────────────────┘    └──────────────────────┘

Communication Protocol

MCP uses JSON-RPC 2.0 over various transports (Specification: 2024-11-05):

JSON-RPC Requirements:

  • id MUST NOT be null for requests (use string or integer)
  • id MUST be unique within a session
  • Requests expect responses; notifications do not
  • Unknown methods return -32601 (Method not found)
// Request (id required, must be unique per session)
{
  "jsonrpc": "2.0",
  "id": "req-1",  // String or integer, never null
  "met
Полный SKILL.md на GitHub

Установить model-context-protocol в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/sdk-examples.mdreferences/specification-details.md

FAQ

Что делает скилл model-context-protocol?

Model Context Protocol (MCP) - Open standard for connecting AI applications to external data sources, tools, and systems. Use for building MCP servers (tools, resources, prompts), clients, understanding protocol architecture, and implementing AI integrations.

Как установить скилл model-context-protocol?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл model-context-protocol запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить model-context-protocol с