Context7 MCP server
Commit Nov 11, 2026Lets an AI client resolve library identifiers and search up-to-date library documentation over HTTP streaming.
Also known as lrstanley/context7-http
- Stars
- 23
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- —
- Last commit
- Nov 11, 2026
- License
- MIT
What is Context7 MCP?
Context7 lets an AI client resolve library identifiers and search up-to-date library documentation over HTTP streaming.
Summary generated from the project's README
About Context7 MCP server
Fetching up-to-date library documentation and resolving identifiers through an AI client is what context7-http enables. This server supports HTTP streaming, which allows developers to use the service from any location without needing to perform a local installation. It is designed to work with the Context7 project to provide real-time access to technical information.
Users can connect via remote endpoints in editors like Cursor or VS Code by configuring the server URL in their MCP settings. For those who prefer to host their own instance, the server can be deployed using Docker container images or run directly via the command line with specific flags for binding addresses and heartbeat intervals. It provides two primary tools: resolve-library-uri for identifying libraries and search-library-docs for retrieving documentation content.
What you can do with it
- 1Locate specific library URIsAn AI client can use the server to find the correct identifier for a specific software library.
- 2Remote MCP deploymentYou can use this server in your development environment without installing any local dependencies.
Written from the project's README. Every use case is checked against a quote from it.
README
View on GitHub:link: Table of Contents
:sparkles: Features
context7-http is a MCP server that supports HTTP streaming for the Context7 project. This allows you to utilize the MCP server from anywhere, without installing anything locally.
- HTTP
streamablesupport. - Provides
resolve-library-uriandsearch-library-docstools for finding libraries, and searching their documentation.
[!WARNING] This server utilizes the
v1variant of the Context7 API, which may eventually be removed by the Context7 team. Note that thev2API requires API keys, is drastically more ratelimited, and expanded use does require paying. See here.
:gear: Usage
If you'd like to run context7-http yourself, use the following:
$ 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- HTTPstreamableendpoint.
Other than swapping out the mcpServer block (or similar, depending on your client), usage should match that of the
official Context7 documentation
VSCode, Cursor, etc
Cursor MCP docs, and VS Code MCP docs for more info.
{
"mcpServers": {
"context7": {
"url": "https://context7.liam.sh/mcp"
}
}
}
:whale: Container Images (ghcr)
$ 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
:raising_hand_man: Support & Assistance
- :heart: Please review the Code of Conduct for guidelines on ensuring everyone has the best experience interacting with the community.
- :raising_hand_man: Take a look at the support document on guidelines for tips on how to ask the right questions.
- :lady_beetle: For all features/bugs/issues/questions/etc, head over here.
:handshake: Contributing
- :heart: Please review the Code of Conduct for guidelines on ensuring everyone has the best experience interacting with the community.
- :clipboard: Please review the contributing 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.
:balance_scale: License
MIT License
Copyright (c) 2025 Liam Stanley <liam@liam.sh>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Also located here
Context7 MCP questions
What tools does the Context7 MCP server provide?
It exposes two tools: resolve-library-uri for finding libraries and search-library-docs for searching their documentation.
Do I need to install anything to use context7-http?
No, it runs as a hosted HTTP streaming server, so you can point your client at its URL without installing anything locally.
What endpoint does the server expose?
It exposes an HTTP streamable endpoint at /mcp, which you configure as the server URL in clients like Cursor or VS Code.
Does context7-http require an API key?
No, it uses the v1 Context7 API, which does not require API keys, though that variant may eventually be removed.
Can I self-host context7-http?
Yes, you can run it yourself with flags for bind address, base URL, trusted proxies, and heartbeat interval, or use the provided container images.