Purpose: gopher-mcp is a server running on MCP that lets large models such as Claude read content from two alternative internet protocols, Gopher and Gemini. Both protocols are read-only access and do not involve Titan, Misfin, Spartan, Nex, or Gopher+.
Main capabilities: It provides two fetch tools, gopher_fetch and gemini_fetch, covering the standard item types in RFC 1436, such as menu (1), index search (7), text (0), HTML (h), etc.; binary types return only metadata; interactive types (2, 8, T) do not establish a connection and return NOT_FETCHABLE. On the Gemini side, it supports native gemtext parsing, TLS, TOFU certificate verification, and client certificates. It returns structured JSON for easy consumption by models. It has timeouts, size limits, input sanitization, SSRF protection, per-host rate limiting, host allowlisting, and caching, and supports paginated continuation reading (offset). There is also a gopher-mcp://policy resource that displays the current fetch policy, as well as two prompt templates. A total of eight MCP tools are registered, four fetch tools are marked read-only, and four certificate tools do not use the network and separate reads from writes.
Usage: Requires Python 3.11+ and uv. The documentation address is cameronrye.github.io/gopher-mcp. With uv, there is no need to clone the repository; you can directly obtain and run the published package; the Docker image is published at ghcr.io/cameronrye/gopher-mcp, and a Dockerfile is also provided for local builds. When running with Docker, a volume must be mounted to /home/app/.local/share/gopher-mcp, otherwise the TOFU pinned information and client certificate private key will be destroyed with the container. The HTTP transport provides GET /health; by default it binds to 0.0.0.0, and a non-loopback host disables the DNS rebinding check; you can use --allowed-host to specify the hostname. The HTTP transport has no authentication and no TLS, so it must be placed behind a trusted reverse proxy, or use --transport stdio. MCP clients generally run over stdio, and configuration only requires the three fields command, args, and env.
Applicable scenarios: Let AI assistants explore Gopherspace and Geminispace's unique content and communities; perform secure fetching and summarization within a controlled allowlist scope.
Limitations: Only read-only access to Gopher and Gemini is supported; Gopher+ is not implemented; unknown types are read as text on a best-effort basis; Gemini redirects are not followed automatically, and it is recommended to follow at most five consecutively; binary content does not download the actual bytes; the HTTP transport is unencrypted and unauthenticated by default. Other details are not yet provided.