- Home
- MCP servers
- Context7 HTTP
Context7 HTTP
- go
19
GitHub Stars
go
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Context7 HTTP MCP Server provides an HTTP streaming MCP endpoint for the Context7 project, enabling you to access MCP resources remotely without installing the server locally. It supports HTTP streamable endpoints and Server-Sent Events (SSE) for live updates, with tools to resolve library URIs and search library docs.
How to use
To use this MCP server with a client, point your MCP client at the HTTP endpoint and enable streamable or SSE as needed. The server exposes resources such as context7://libraries and context7://libraries/top/<n>, which you can query from your client to retrieve library data and top libraries by trust score or stars.
How to install
Prerequisites you need before starting: a machine with a modern operating system and network access. You may run the server directly if you have a prebuilt binary, or deploy via container if using images.
Run the MCP server using the provided executable with your preferred flags. The following example demonstrates a typical start sequence.
$ 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" \
--heartbeat-interval 55s
Additional notes
-
SSE endpoints are available at
/sseand/message, though SSE is considered deprecated in MCP practice. Prefer the HTTPstreamableendpoint when possible. -
If you deploy behind a reverse proxy, ensure you configure
--trusted-proxiesso the server can correctly interpret client IPs and headers. -
The server provides helper tools for library discovery:
resolve-library-uriandsearch-library-docsto locate libraries and browse their documentation.
Container Images (ghcr)
You can run a prebuilt container image if you prefer containerized deployment.
Available tools
resolve-library-uri
Finds and resolves library URIs used by MCP clients, aiding library discovery.
search-library-docs
Searches library documentation to help you understand library usage and details.