Skip to main content
Glama
cameronrye

Gopher & Gemini MCP Server

by cameronrye

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_TOFU_ENABLEDNoEnable TOFU certificate validation for Geminitrue
GEMINI_ALLOWED_HOSTSNoComma-separated list of allowed Gemini hosts (default: all)
GEMINI_CACHE_ENABLEDNoEnable response caching for Geminitrue
GOPHER_ALLOWED_HOSTSNoComma-separated list of allowed Gopher hosts (default: all)
GOPHER_CACHE_ENABLEDNoEnable response caching for Gophertrue
GEMINI_TIMEOUT_SECONDSNoRequest timeout for Gemini in seconds30
GOPHER_TIMEOUT_SECONDSNoRequest timeout for Gopher in seconds30
GEMINI_CACHE_TTL_SECONDSNoCache TTL for Gemini in seconds300
GEMINI_MAX_RESPONSE_SIZENoMaximum response size for Gemini in bytes1048576
GOPHER_CACHE_TTL_SECONDSNoCache TTL for Gopher in seconds300
GOPHER_MAX_RESPONSE_SIZENoMaximum response size for Gopher in bytes1048576
GEMINI_CLIENT_CERTS_ENABLEDNoEnable client certificate support for Geminitrue

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
gopher_fetchA

Fetch Gopher menus or text by URL.

Supports all standard Gopher item types including menus (type 1), text files (type 0), search servers (type 7), and binary files. Returns structured JSON responses optimized for LLM consumption.

Args: url: Full Gopher URL to fetch (e.g., gopher://gopher.floodgap.com/1/)

gemini_fetchA

Fetch Gemini content by URL.

Supports the Gemini protocol with TLS, TOFU certificate validation, client certificates, and gemtext parsing. Returns structured JSON responses optimized for LLM consumption.

Args: url: Full Gemini URL to fetch (e.g., gemini://gemini.circumlunar.space/)

gopher_batch_fetchA

Fetch multiple Gopher URLs in parallel for improved performance.

Uses asyncio.gather() to fetch all URLs concurrently, which is much faster than fetching them sequentially. Useful for fetching multiple menu items or related resources at once.

Args: urls: List of Gopher URLs to fetch

Returns: List of responses in the same order as the input URLs

gemini_batch_fetchA

Fetch multiple Gemini URLs in parallel for improved performance.

Uses asyncio.gather() to fetch all URLs concurrently, which is much faster than fetching them sequentially. Useful for fetching multiple pages or related resources at once.

Args: urls: List of Gemini URLs to fetch

Returns: List of responses in the same order as the input URLs

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cameronrye/gopher-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server