Context7 HTTP

Um servidor MCP para o projeto Context7, fornecendo endpoints de streaming HTTP e busca para informações de bibliotecas sem instalação local.

Documentação

logo

:link: Sumário

:sparkles: Recursos

context7-http é um servidor MCP que suporta streaming HTTP para o projeto Context7. Isso permite que você utilize o servidor MCP de qualquer lugar, sem instalar nada localmente.

  • Suporte a HTTP streamable.
  • Fornece ferramentas resolve-library-uri e search-library-docs para encontrar bibliotecas e pesquisar sua documentação.

[!WARNING] Este servidor utiliza a variante v1 da API do Context7, que pode eventualmente ser removida pela equipe do Context7. Observe que a API v2 requer chaves de API, é drasticamente mais limitada em taxa de requisições, e o uso expandido exige pagamento. Veja aqui.


:gear: Uso

Se você quiser executar o context7-http você mesmo, use o seguinte:

$ 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

Para todos os exemplos abaixo, substitua context7.liam.sh pela URL do seu próprio servidor MCP, se você estiver executando sua própria instância.

Endpoints configurados:

  • https://context7.liam.sh/mcp - endpoint HTTP streamable.

Além de trocar o bloco mcpServer (ou similar, dependendo do seu cliente), o uso deve corresponder ao da documentação oficial do Context7

VSCode, Cursor, etc

Documentação MCP do Cursor, e Documentação MCP do VS Code para mais informações.

{
  "mcpServers": {
    "context7": {
      "url": "https://context7.liam.sh/mcp"
    }
  }
}

:whale: Imagens de Contêiner (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: Referências


:raising_hand_man: Suporte e Assistência

  • :heart: Por favor, revise o Código de Conduta para diretrizes sobre como garantir que todos tenham a melhor experiência ao interagir com a comunidade.
  • :raising_hand_man: Dê uma olhada no documento de suporte para diretrizes sobre dicas de como fazer as perguntas certas.
  • :lady_beetle: Para todos os recursos/erros/problemas/perguntas, etc, vá até aqui.

:handshake: Contribuindo

  • :heart: Por favor, revise o Código de Conduta para diretrizes sobre como garantir que todos tenham a melhor experiência ao interagir com a comunidade.
  • :clipboard: Por favor, revise o documento de contribuição para enviar problemas/um guia sobre como enviar pull requests e ajudar.
  • :old_key: Para qualquer coisa relacionada à segurança, revise a política de segurança deste repositório.

:balance_scale: Licença

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.

Também localizada aqui