home / mcp / context7 http mcp server
Provides an HTTP streaming MCP server for Context7 with library endpoints and search tools.
Configuration
View docs{
"mcpServers": {
"lrstanley-context7-http": {
"url": "https://context7.liam.sh/mcp"
}
}
}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.
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.
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- SSE endpoints are available at /sse and /message, though SSE is considered deprecated in MCP practice. Prefer the HTTP streamable endpoint when possible.
- If you deploy behind a reverse proxy, ensure you configure --trusted-proxies so the server can correctly interpret client IPs and headers.
- The server provides helper tools for library discovery: resolve-library-uri and search-library-docs to locate libraries and browse their documentation.
You can run a prebuilt container image if you prefer containerized deployment.
Finds and resolves library URIs used by MCP clients, aiding library discovery.
Searches library documentation to help you understand library usage and details.