MCP Server: підключення інструментів до Claude AI

AI-агенти на VDS · 19.04.2026
MCP Server: підключення інструментів до Claude AI

MCP Server: Claude Desktop + локальні інструменти

Model Context Protocol (MCP) — відкритий стандарт Anthropic для підключення AI-агентів до зовнішніх даних та інструментів.

Конфігурація Claude Desktop

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/projects"]
    },
    "sqlite": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-sqlite", "--db-path", "/data/mydb.sqlite"]
    }
  }
}

Власний MCP-сервер на Python

pip install mcp
from mcp.server import Server
from mcp.server.stdio import stdio_server
from mcp import types
import asyncio

server = Server("my-tools")

@server.list_tools()
async def list_tools():
    return [types.Tool(name="check_domain", description="Перевірити домен",
        inputSchema={"type": "object", "properties": {"domain": {"type": "string"}}})]
Екосистема: На mcp.so доступні сотні готових серверів: GitHub, PostgreSQL, Google Drive та інші.
← Назад до бази знань Поставити питання підтримці