}PeekDocs

Connect via MCP

peek runs a remote MCP (Model Context Protocol) server, so MCP-aware clients like Claude Code can query your indexed repositories directly — no copy-pasting code into a chat.

Authentication is a bearer token you mint under Settings → MCP access.

  1. Generate a token

    In Settings → MCP access, name and generate a token. Copy it immediately — the secret is shown only once. You can revoke it there at any time.

  2. Add the server

    Your endpoint:

    https://<your-peek-host>/mcp

    Claude Code:

    claude mcp add --transport http peek https://<your-peek-host>/mcp \
      --header "Authorization: Bearer <token>"

    Claude Desktop, Cursor, and other clients: add a remote / HTTP MCP server pointing at the endpoint above, with an Authorization: Bearer <token> header.

Available tools

  • list_repos — your indexed repositories and their status. Only ready repos can be queried.
  • ask_repo — ask a natural-language question about one or more repos (repos: ["owner/repo", …]); pass several related repos for a cross-repo / cross-service question. peek runs its multi-agent research and returns a synthesized answer. Usage is billed to your account, like the web chat.