Context7 Key Rotator MCP
Context7 Key Rotator MCP
Не нативный автономный HTTP-сервер Model Context Protocol для Context7 V2. Он предоставляет ровно два инструмента:
resolve-library-id(libraryName, query)query-docs(libraryId, query)
Каждый обычный запрос поочерёдно использует один из двух ключей из CONTEXT7_API_KEYS. Если Context7 блокирует выбранный ключ (401, 403 или 429), сервер повторяет запрос один раз с другим ключом. Если заблокированы оба ключа, вызов инструмента возвращает ошибку MCP.
Сервер не хранит состояние: в нём нет OAuth, CLI-адаптера, постоянного состояния ключей, кулдаунов, скоринга, проксирования или хранилища сессий.
Локальный запуск
Переменная CONTEXT7_API_KEYS должна содержать ровно два ключа Context7 API, разделённых запятой. Храните её в секрет-менеджере; не помещайте её в файл .env, закоммиченный в репозиторий.
doppler run -p ai-automation -c dev -- npm startСервер принимает запросы на POST /mcp на порту PORT (по умолчанию 3000). Хостинговая среда отвечает за сетевой доступ к серверу, TLS и регистрацию клиентов.
Related MCP server: Context7 MCP Python Server
Разработка
npm install
npm test
npm run buildТесты используют мок Context7 V2 и покрывают обычное чередование ключей, повторный запрос с другим ключом после заблокированного ответа, ошибку при блокировке обоих ключей и нативно-совместимый форматтер результата.
This server cannot be deployed
Maintenance
Related MCP Connectors
Docsy gives AI assistants current, version-specific documentation for libraries, frameworks and SDKs. Resolve library IDs and versions, then search and fetch focused official documentation with original source links using five read-only MCP tools. Hosted Streamable HTTP with OAuth 2.1 sign-in.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Keyless docs search so coding agents wire up RoxyAPI: every endpoint, param and SDK call.
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides access to the Context7 API for searching up-to-date documentation, code examples, API references, and troubleshooting help across thousands of programming libraries and frameworks. Enables developers and AI agents to quickly find accurate documentation, compare libraries, get migration guides, and resolve coding issues.-
- AlicenseNot gradedqualityNot gradedmaintenanceProvides real-time access to code library documentation and examples through Context7 API integration, enabling AI assistants to retrieve up-to-date technical documentation, code snippets, and best practices for various programming libraries.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides up-to-date library documentation by resolving library names and fetching docs via the Context7 API.MIT
- AlicenseNot gradedqualityDmaintenanceEnables to search and retrieve chunks from a fictional library's documentation through three tools (kb_search, kb_fetch, kb_sources), allowing LLMs to perform RAG queries via the Model Context Protocol.MIT