Gophermancer
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
š Gophermancer
Resurrecting Gopherspace for AI Agents
Gophermancer bridges the 1991 Gopher protocol (RFC 1436) with the 2024 Model Context Protocol (MCP). A necromantic feat of stitching incompatible technologies together.
What It Is
A working implementation of:
Gopher client and server (RFC 1436 compliant wire format)
MCP tools for AI agents to browse, fetch, search, and crawl gopherholes
Terminal UI with a necromancer theme for human explorers
Static HTML generator for preserving gopherspace as self-contained pages
All built with Node.js standard library only. No runtime dependencies. Pure protocol necromancy.
Related MCP server: wigolo
Quick Start
Prerequisites
Node.js 22+
Nothing else (zero npm dependencies)
Installation
git clone <repository-url>
cd gophermancerThat's it. No npm install needed.
Run the Tests
npm testAll 74+ tests should pass, exercising the full stack without touching the network.
Three Ways to Use Gophermancer
1. MCP Server (for AI Agents)
Start the MCP server:
node src/mcp/server.jsThe server communicates via JSON-RPC over stdin/stdout. It provides four tools:
gopher_browse(url)- Browse a menugopher_fetch(url)- Fetch a text documentgopher_search(url, query)- Search a gopherholegopher_spelunk(url, maxDepth, maxVisits)- Crawl recursively
MCP Client Configuration:
Add this to your MCP client's config (e.g., Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"gophermancer": {
"command": "node",
"args": ["/absolute/path/to/gophermancer/src/mcp/server.js"],
"env": {}
}
}
}Replace /absolute/path/to/gophermancer with the actual path.
2. Terminal UI (for Humans)
Browse gopherspace in your terminal:
node src/ui/terminal.js gopher://gopher.floodgap.com/1/Features:
Necromancer-themed ANSI colors and Unicode symbols
Navigate menus with numbered selections
View text documents
Search gopherholes (type 7 items)
Back navigation and history
Graceful error handling
Controls:
Type a number to select an item
borbackto go backqorquitto exit
Try the demo server:
# Terminal 1: Start demo server
node demo/server.js
# Terminal 2: Browse it
node src/ui/terminal.js gopher://localhost:7070/1/3. Static HTML Generator
Render a gopherhole as a self-contained HTML page:
node src/ui/static.js gopher://gopher.floodgap.com/1/ > output.htmlThe generated HTML:
Contains all CSS inline (no external dependencies)
Preserves the necromancer theme
Works offline once saved
Links to other gopher URLs (for further exploration)
Generate from the demo:
# Terminal 1: Start demo server
node demo/server.js
# Terminal 2: Generate HTML
node src/ui/static.js gopher://localhost:7070/1/ > demo.html
open demo.html # or xdg-open on LinuxArchitecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā USER INTERFACES ā
ā āāāāāāāāāāāā āāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā ā
ā ā Terminal ā ā Static ā ā MCP Client ā ā
ā ā UI ā ā HTML ā ā (AI Agent) ā ā
ā āāāāāāā¬āāāāā āāāāāāā¬āāāāā āāāāāāāāāā¬āāāāāāāāāā ā
āāāāāāāāāā¼āāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāā
ā ā ā
āāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP TOOLS LAYER ā
ā ⢠gopher_browse() ā
ā ⢠gopher_fetch() ā
ā ⢠gopher_search() ā
ā ⢠gopher_spelunk() ā
āāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā GOPHER PROTOCOL LAYER ā
ā ⢠Client (fetch + parse URL) ā
ā ⢠Parser (menu + text) ā
ā ⢠Codec (CRLF encoding) ā
ā ⢠Server (for testing/demo) ā
āāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā TCP SOCKETS ā
ā (node:net module) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā GOPHERSPACE ā
ā (Live servers still exist!) ā
ā ⢠gopher.floodgap.com ā
ā ⢠gopherpedia.com ā
ā ⢠... and more ... ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāDesign Principles:
Standard library only - No runtime dependencies to install
RFC 1436 compliant - CRLF line endings, correct wire format
Tested without network - In-process test servers
Three surfaces - MCP tools, terminal UI, static HTML
Necromancer theme - Because raising the dead should look cool
Demo Gopherhole
Gophermancer includes a themed demo gopherhole under demo/:
Content:
Root menu with directories, texts, and search
Library submenu with documentation
Spell components (protocol details)
Restricted section (forbidden knowledge)
Working search server
Necromancer theme throughout
Start it:
node demo/server.js
# Or specify a port:
node demo/server.js 8080Then browse with:
Terminal:
node src/ui/terminal.js gopher://localhost:7070/1/Static HTML:
node src/ui/static.js gopher://localhost:7070/1/ > demo.htmlMCP tools: Call
gopher_browsewithgopher://localhost:7070/1/
Kiroween Hackathon - Frankenstein Category
Category: Frankenstein (stitching incompatible technologies together)
The Stitch:
1991 Technology: Gopher protocol (RFC 1436)
Text-based, hierarchical menus
TCP sockets with CRLF line endings
Tab-separated fields
Single-period terminator for text documents
One request, one response, close connection
2024 Technology: Model Context Protocol (MCP)
JSON-RPC over stdio
Structured tool schemas
AI agent integration
Asynchronous, persistent connections
Why They're Incompatible:
Gopher predates JSON (1991 vs 2002)
Gopher is synchronous request/response; MCP is async message-passing
Gopher has no concept of AI agents or structured data
Line ending differences (CRLF vs LF)
Gopher is dead; MCP is brand new
The Bridge:
Gopher client speaks native wire protocol
MCP tools present structured, modern interface
Parser translates tab-separated menus to JSON objects
Agent sees clean, documented tools; protocol details hidden
The necromancer (our code) makes the translation
Demonstration of Kiro Usage:
This project's .kiro/ directory contains:
specs/gophermancer/- Complete specification and task breakdownspecs/gophermancer/tasks.md- 80+ tasks across 10 phasesReal specs that guided the implementation
Demonstrates task management, phased development, and spec-first design
File Structure
gophermancer/
āāā .kiro/
ā āāā specs/
ā āāā gophermancer/
ā āāā tasks.md # Implementation task list
ā āāā ... # Other specs
āāā src/
ā āāā gopher/
ā ā āāā client.js # Protocol client + URL parsing
ā ā āāā server.js # Protocol server (for tests/demo)
ā ā āāā codec.js # Wire format encoding/decoding
ā ā āāā parser.js # Menu and text parsing
ā āāā mcp/
ā ā āāā server.js # JSON-RPC stdio transport
ā ā āāā tools.js # Tool implementations
ā āāā crawl/
ā ā āāā spelunker.js # Recursive crawl algorithm
ā āāā ui/
ā āāā terminal.js # Terminal UI with ANSI colors
ā āāā static.js # Static HTML generator
āāā test/
ā āāā gopher/ # Protocol layer tests
ā āāā mcp/ # MCP tool tests
ā āāā crawl/ # Spelunker tests
ā āāā ui/ # UI tests
ā āāā e2e/ # End-to-end tests
āāā demo/
ā āāā content.js # Demo gopherhole content
ā āāā server.js # Demo server script
āāā package.json # Project metadata (zero dependencies)
āāā README.md # This fileTechnical Details
Language: JavaScript (Node.js 22+)
Module System: ES modules ("type": "module")
Dependencies: Zero runtime dependencies (standard library only)
Line Count: ~2,500 lines of implementation + tests
Test Suite: 74+ tests, all passing, no network access
Supported Gopher Item Types:
0- Text file1- Directory (menu)3- Error7- Search server9- Binary fileg- GIF imageI- Image (other formats)h- HTML filei- Informational text (no link)s- Sound file
Not Supported:
Gopher+ extensions
Telnet items (type 8, T)
Interactive forms
Real-time streaming
Protocol Correctness:
CRLF (
\r\n) line endings in all outgoing dataAccepts both CRLF and LF on input (tolerant)
Tab-separated fields in menus
Single-period terminator for text documents
Proper selector encoding (including empty root selector)
Timeout and error handling
Real Gopherholes to Try
Once you have Gophermancer running, explore these live gopherholes:
gopher://gopher.floodgap.com/1/- The OG Gopher servergopher://gopherpedia.com/1/- Wikipedia via Gophergopher://bitreich.org/1/- Bitreich communitygopher://gopherproject.org/1/- Gopher Project
Example:
node src/ui/terminal.js gopher://gopher.floodgap.com/1/License
MIT License - See package.json for details
Credits
Built for the Kiroween 2024 Hackathon (Frankenstein Category)
Technologies Stitched:
RFC 1436 (Gopher Protocol) - 1991
Model Context Protocol (MCP) - 2024
Node.js standard library
ANSI escape codes (terminal colors)
HTML5 + CSS3 (static rendering)
Inspirations:
The Gopher protocol maintainers who keep servers running
Anthropic's Model Context Protocol specification
Every necromancer who refuses to let old technology die
The Frankenstein spirit of stitching incompatible parts together
š "Some protocols should not be forgotten. We are the memory." š
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Scrape, crawl and search the web for AI agents via MCP.
Turn any public website into an MCP server for agents to search, read and navigate.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Search, read, and act on the web. The Stophy MCP server for agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP tool server that gives any AI agent the ability to search, scrape, and analyze content across the internet.42MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to perform local-first web search, fetch, crawl, extract, cache, research, and autonomous information gathering through MCP, with no API keys or cloud dependencies.808 npmAGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to fetch web pages, extract clean Markdown, save and search versions offline, crawl sites within bounds, and retrieve stable citations through MCP tools.8 npmApache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to run web searches across configured providers and crawl individual pages or whole sites into clean Markdown or JSON, including authenticated crawls and local or HTTP MCP deployment.-