Get the FREE Ultimate OpenClaw Setup Guide →

c7

An unofficial MCP server for Context7 by Upstash.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio quiint-c7-mcp-server npx -y c7-mcp-server

How to use

The c7-mcp-server provides an MCP (Model Context Protocol) bridge to Context7's API, exposing a standard set of MCP tools and resources that clients can use to interact with Context7 content. It offers tooling to query topics within a Context7 project, search for available Context7 projects, and fetch metadata about a specific project, as well as a curated list of valid projects via a standard MCP interface. Clients such as Claude Desktop, IDE plug-ins, or custom applications can launch this server and communicate over standard input/output using the MCP protocol to retrieve structured responses from Context7.

Key capabilities include:

  • Tools: c7_query to ask questions about a topic within a project, c7_search to discover projects by keyword, and c7_info to fetch metadata about a project (e.g., repository, last update).
  • Resources: c7_projects_list to retrieve the list of all available Context7 projects via the context7://projects/list URI.

To use the server, ensure it is installed (globally or locally) and start it so MCP clients can connect. The MCP Inspector can be used to verify the server is responding and to interact with Tools and Resources through a UI, selecting the Tools or Resources tabs to issue commands and view responses.

How to install

Prerequisites:

  • Node.js 18+ (recommended)
  • npm (comes with Node.js) or Bun

Option 1 — Install from npm (recommended for users):

  1. Install globally so the command is available system-wide:
npm install -g c7-mcp-server
  1. The server command becomes available as: c7-mcp-server

Option 2 — Install from Source (for development):

  1. Clone the repository and navigate into it:
git clone <your-repo-url>
cd c7-mcp-server
  1. Install dependencies:
npm install
# or if using Bun
# bun install
  1. Build the server (if a build step is provided):
npm run build
  1. Link the command locally for testing:
npm link

This will make the c7-mcp-server command available on your machine for development and testing.

Additional notes

Notes and tips:

  • The server is a bridge to the Context7 API; all data originates from Context7, and this MCP server simply exposes an MCP interface.
  • If you plan to use with Claude Desktop or other MCP-enabled clients, ensure the client configuration points to the c7-mcp-server command (e.g., via your client’s mcpServers configuration).
  • Environment variables can be added for tokens or API-specific settings if needed; you can extend the mcpServers entry with an env object. For example: "env": { "CONTEXT7_API_TOKEN": "<your-token>" }
  • If you encounter permissions issues after installing globally, ensure your PATH includes the npm global bin directory, or use the local development flow (npm link) for testing.
  • Testing with the MCP Inspector: you can launch the inspector with the server command, e.g., npx @modelcontextprotocol/inspector c7-mcp-server to validate the server responds and to explore Tools and Resources.

Related MCP Servers

Sponsor this space

Reach thousands of developers