Skip to main content
Glama
MooseGooseConsulting

Context7 Key Rotator MCP

Context7 Key Rotator MCP

A small, standalone remote HTTP Model Context Protocol server for Context7 V2. It exposes exactly two tools:

  • resolve-library-id(libraryName, query)

  • query-docs(libraryId, query)

Each ordinary request alternates between the two keys in CONTEXT7_API_KEYS. If Context7 blocks the selected key (401, 403, or 429), the server retries the request once with the other key. If both keys are blocked, the tool call returns an MCP error.

The server is stateless: it has no OAuth, CLI adapter, persistent key state, cooldowns, scoring, proxying, or session storage.

Run locally

CONTEXT7_API_KEYS must contain exactly two comma-separated Context7 API keys. Keep it in your secret manager; do not place it in a checked-in .env file.

doppler run -p ai-automation -c dev -- npm start

The server listens on PORT (default 3000) at POST /mcp. The hosting environment is responsible for network exposure, TLS, and client registration.

Related MCP server: Context7 MCP Python Server

Development

npm install
npm test
npm run build

The tests mock Context7 V2 and cover normal alternation, retrying the other key after a blocked response, failure when both keys are blocked, and the native-compatible result formatter.

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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.
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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.
    1

View all related MCP servers

Related MCP Connectors

  • A paid remote MCP for Context7 MCP docs, built to return verdicts, receipts, usage logs, and audit-r

  • Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.

  • Query any docs site via MCP. Submit a URL, ask questions, get cited answers.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MooseGooseConsulting/context7-key-rotator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server