Вход

Документация для AI-агентов

Удалённый MCP

Предоставляет актуальную документацию и примеры кода из официальных источников прямо в контекст AI-агента. Устраняет галлюцинации и устаревшие данные при разработке.

нужен ключ Удалённый · Streamable HTTP API-ключ Разработка ИИ и модели context7 Автосборка · 23 просмотров

Что умеет

Предоставляет актуальную документацию и примеры кода из официальных источников прямо в контекст AI-агента. Устраняет галлюцинации и устаревшие данные при разработке.

Описание приведено из репозитория без проверки: это слова автора сервера, а не редакции каталога.

  • Получение версионной документации из репозиториев в реальном времени
  • Генерация рабочих примеров кода для конкретных библиотек

Кому пригодится

  • Ускорение разработки с помощью AI-кодинга без поиска по веб-поиску
  • Работа со сложными API и библиотеками через MCP
#llm #mcp #mcp-server #vibe-coding

Подключение

Удалённый сервер: клиент обращается по адресу, код на вашей машине не запускается.

Claude Desktop

claude_desktop_config.json

Cursor

~/.cursor/mcp.json

Windsurf

~/.codeium/windsurf/mcp_config.json

Вставьте блок mcpServers в файл конфигурации своего клиента. Ключи не входят в файл: вместо SET_LOCALLY подставьте свои значения.

{
    "mcpServers": {
        "context7": {
            "url": "https://mcp.context7.com/mcp",
            "headers": {
                "Authorization": "Bearer SET_LOCALLY"
            }
        }
    }
}

Вызов без установки — через шлюз

Агент вызывает инструменты этого сервера через https://www.n2j.ru/mcphub/mcp: hub_call_tool {"server":"context7","tool":"…","arguments":{…}} Сервер требует авторизации — ключ задаётся на стороне каталога.

https://mcp.context7.com/mcp

Инструменты

2 схем · ≈ 886 условных токенов

MCP Guard · риск: low

resolve-library-id

Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Each result includes: - Library ID: Context7-compatible identifier (format: /org/project) - Name: Library or package name - Description: Short summary - Code Snippets: Number of available code examples - Source Reputation: Authority indicator (High, Medium, Low, or Unk

Показать схему аргументов
{
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "required": [
        "query",
        "libraryName"
    ],
    "properties": {
        "query": {
            "type": "string",
            "description": "What to look up in the library's documentation. This is used to rank library results by relevance to what the user is trying to accomplish. The query is sent to the Context7 API for processing. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query."
        },
        "libraryName": {
            "type": "string",
            "description": "Library name to search for and retrieve a Context7-compatible library ID. Use the official library name with proper punctuation — e.g., 'Next.js' instead of 'nextjs', 'Customer.io' instead of 'customerio', 'Three.js' instead of 'threejs'."
        }
    }
}

query-docs

Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question. If you know the programming language the user is working in, pass it as language so the results match their setup.

Показать схему аргументов
{
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "required": [
        "libraryId",
        "query"
    ],
    "properties": {
        "query": {
            "type": "string",
            "description": "What to look up in the library's documentation, scoped to a single concept. Be specific and include relevant details, but keep each query to one topic — if the user's question spans multiple distinct concepts, make a separate call per concept instead of combining them, unless the question is about how the concepts interact. Good: 'How to set up authentication with JWT in Express.js' or 'React useEffect cleanup function examples'. Bad (too vague): 'auth' or 'hooks'. Bad (too broad): 'routing and auth and caching in Next.js'. The query is sent to the Context7 API for processing. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query."
        },
        "language": {
            "type": "string",
            "description": "Programming language the user is writing code in, such as 'Python', 'TypeScript', 'Go', or 'C#'. Ranks code examples in that language first. Leave it out when the language is unknown or does not apply."
        },
        "libraryId": {
            "type": "string",
            "description": "Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase', '/vercel/next.js/v16.2.9') retrieved from 'resolve-library-id' or directly from user query in the format '/org/project' or '/org/project/version'."
        }
    }
}

Статическая проверка MCP Guard

Эвристический разбор описаний инструментов. Это не проверка исполняемого кода и не гарантия безопасности.

low: 2 high: 0 medium: 0
  • resolve-library-id · low

    Не указано, может ли вызов менять состояние; выставьте корректные аннотации MCP.

  • query-docs · low

    Не указано, может ли вызов менять состояние; выставьте корректные аннотации MCP.