
## :link: Table of Contents - [Features](#sparkles-features) - [Usage](#gear-usage) - [VSCode, Cursor, etc](#vscode-cursor-etc) - [Container Images (ghcr)](#whale-container-images-ghcr) - [References](#books-references) - [Support & Assistance](#raising_hand_man-support--assistance) - [Contributing](#handshake-contributing) - [License](#balance_scale-license) ## :sparkles: Features **context7-http** is a MCP server that supports HTTP streaming for the [Context7](https://context7.com) project. This allows you to utilize the MCP server from anywhere, without installing anything locally. - HTTP `streamable` support. - Provides `resolve-library-uri` and `search-library-docs` tools for finding libraries, and searching their documentation. > [!WARNING] > This server utilizes the `v1` variant of the Context7 API, which may eventually be > removed by the Context7 team. Note that the `v2` API requires API keys, is drastically > more ratelimited, and expanded use does require paying. [See here](https://context7.com/plans). --- ## :gear: Usage If you'd like to run context7-http yourself, use the following: ```console $ context7-http \ --debug \ --bind-addr "0.0.0.0:8080" \ --base-url https://context7.your-domain.com \ # only needed if using sse, http streamable doesn't need this --trusted-proxies "x-forwarded-for,10.0.0.0/8" \ # if behind a reverse proxy --heartbeat-interval 55s # for those with spotty networks or annoying network proxies ``` ------------ For all examples below, replace `context7.liam.sh` with your own MCP server URL, if you're running your own instance. Configured endpoints: - `https://context7.liam.sh/mcp` - HTTP `streamable` endpoint. Other than swapping out the `mcpServer` block (or similar, depending on your client), usage should match that of the [official Context7 documentation](https://github.com/upstash/context7#-with-context7) ### VSCode, Cursor, etc [Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers), and [VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more info. ```json { "mcpServers": { "context7": { "url": "https://context7.liam.sh/mcp" } } } ``` ### :whale: Container Images (ghcr) ```console $ docker run -it --rm ghcr.io/lrstanley/context7-http:master $ docker run -it --rm ghcr.io/lrstanley/context7-http:0.5.1 $ docker run -it --rm ghcr.io/lrstanley/context7-http:latest $ docker run -it --rm ghcr.io/lrstanley/context7-http:0.5.0 $ docker run -it --rm ghcr.io/lrstanley/context7-http:0.4.0 $ docker run -it --rm ghcr.io/lrstanley/context7-http:0.3.0 $ docker run -it --rm ghcr.io/lrstanley/context7-http:0.2.0 $ docker run -it --rm ghcr.io/lrstanley/context7-http:0.1.0 ``` ## :books: References - [Context7](https://context7.com) - [repo](https://github.com/upstash/context7) - [Model Context Protocol Introduction](https://modelcontextprotocol.io/introduction) --- ## :raising_hand_man: Support & Assistance * :heart: Please review the [Code of Conduct](.github/CODE_OF_CONDUCT.md) for guidelines on ensuring everyone has the best experience interacting with the community. * :raising_hand_man: Take a look at the [support](.github/SUPPORT.md) document on guidelines for tips on how to ask the right questions. * :lady_beetle: For all features/bugs/issues/questions/etc, [head over here](https://github.com/lrstanley/context7-http/issues/new/choose). ## :handshake: Contributing * :heart: Please review the [Code of Conduct](.github/CODE_OF_CONDUCT.md) for guidelines on ensuring everyone has the best experience interacting with the community. * :clipboard: Please review the [contributing](.github/CONTRIBUTING.md) doc for submitting issues/a guide on submitting pull requests and helping out. * :old_key: For anything security related, please review this repositories [security policy](https://github.com/lrstanley/context7-http/security/policy). ## :balance_scale: License ``` MIT License Copyright (c) 2025 Liam Stanley