Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-bbsConnect to vert.synchro.net and tell me what's on the main menu"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-bbs
FastMCP-based telnet client for BBS (Bulletin Board System) interactions with auto-learning capabilities. Enables AI agents to interact with legacy telnet-based systems through the Model Context Protocol (MCP).
⚠️ AI-Generated Code Disclaimer
This project was generated using AI assistance. While functional, it may contain bugs, security vulnerabilities, or unexpected behavior. Use at your own risk. The author assumes no responsibility or liability for any issues, damages, or losses resulting from the use of this software. Review the code thoroughly before using in any production environment.
Overview
mcp-bbs bridges modern AI agents with vintage BBS systems by providing:
Full terminal emulation with ANSI/CP437 support
Pattern-based screen reading and navigation
Automatic discovery and documentation of menus and prompts
Session logging for analysis and replay
MCP tool exposure for seamless AI integration
Architecture
Features
Telnet Client: Full RFC 854 telnet protocol with option negotiation (BINARY, SGA, NAWS, TTYPE)
Terminal Emulation: Complete ANSI/CP437 terminal with 80x25 (configurable) screen buffer
Screen Reading: Extract text, match patterns, wait for prompts with timeout control
Auto-Learning: Discover menus
[A] Option, promptsEnter name:, and document navigation flowsSession Logging: JSONL format with timestamps, context, and raw bytes for replay/analysis
MCP Integration: 25+ tools for connection, navigation, learning, and session management
Keepalive: Configurable interval to prevent idle disconnections
Installation
Prerequisites
Install uv (recommended package installer):
Or see uv installation docs for other methods.
Installing mcp-bbs
mcp-bbs is an MCP server that must be configured in your MCP client (Claude Desktop, Cline, etc.).
Option 1: Install as a tool (recommended)
Then add to your MCP client configuration:
Option 2: Install with pip
Then configure your MCP client to run mcp-bbs as a server.
Development Installation
Quick Start Example
Here's a complete example of an AI agent connecting to a BBS, navigating menus, and reading messages:
Usage
As MCP Server
Run as an MCP server to expose BBS tools:
Programmatic Usage
Direct Python API usage without MCP:
MCP Tools Reference
The following tools are exposed when running as an MCP server:
Note: In v0.2.0, we removed duplicate *_screen variants and utility wrappers to simplify the API. Use bbs_read()["screen"] to extract screen text, and compose operations instead of using convenience wrappers like bbs_expect or bbs_play_step.
Connection Management
bbs_connect
Connect to a BBS via telnet.
bbs_disconnect
Disconnect from the BBS. Always call before exit.
bbs_status
Get connection status, session ID, last RX/TX timestamps, keepalive info.
Screen Interaction
bbs_read
The primary read method. Reads from telnet stream and returns full snapshot with screen text, raw output, cursor position, and hash. Always logs raw bytes to JSONL so LLM can refer back if uncertain about screen content.
Use timeout_ms=0 to get current screen state without waiting for new data.
Returns:
Important: Every bbs_read call logs the full snapshot including raw_bytes_b64 to session.jsonl (if logging enabled). If the LLM misinterprets screen content, it can consult the log file for the exact raw bytes received.
bbs_read_until_nonblank
Keep reading until screen has non-whitespace content or timeout.
bbs_read_until_pattern
Read until screen matches regex pattern.
Returns: snapshot with additional "matched": true/false
bbs_send
Send keystrokes to BBS (CP437 encoded).
Use \r for Enter, \n for Line Feed, \x1b for Escape.
bbs_wake
Try multiple keystroke sequences until screen changes (useful for idle timeouts).
Auto-Learning
bbs_auto_learn_enable
Enable/disable automatic learning of prompts and menus.
bbs_auto_learn_prompts
Configure rules to auto-detect prompts.
bbs_auto_learn_menus
Configure rules to auto-detect menu options.
bbs_auto_learn_discover
Enable automatic discovery of [X] style menu options.
bbs_learn_menu
Manually document a menu.
bbs_learn_prompt
Manually document a prompt.
bbs_learn_flow
Document navigation between screens.
Session Management
bbs_log_start
Start JSONL session logging. Highly recommended - allows LLM to refer back to raw session data if it misreads the screen.
bbs_log_stop
Stop session logging.
bbs_log_note
Add structured note to log for debugging.
bbs_set_context
Set metadata attached to all subsequent log entries.
Keepalive
bbs_set_keepalive
Configure automatic keepalive to prevent idle timeout.
Set interval_s to 0 or null to disable.
Typical Workflow
Key Points
Always start session logging (
bbs_log_start) - creates complete record with raw bytesUse - single method that always logs raw data in JSONL
Enable auto-learning early - builds knowledge base for future sessions
LLM can refer to logs if uncertain - every
bbs_readincludesraw_bytes_b64in session logNo separate "get screen" method - use
bbs_read(timeout_ms=0)to get current stateKnowledge base accumulates - menus, prompts, flows documented in
.bbs-knowledge/
Why Single Read Method?
Previously, there were separate methods for reading new data vs. getting current screen. This was confusing and error-prone. Now:
Single source of truth:
bbs_readalways reads, always logs raw bytesLLM safety: If unsure about screen content, LLM can inspect
raw_bytes_b64from session.jsonlConsistent logging: Every screen observation is recorded with full context
Simpler API: No confusion about which method to use
Configuration
Knowledge Base
By default, learned knowledge is stored in platform-specific user data directories following the XDG Base Directory Specification:
Linux/BSD:
~/.local/share/mcp-bbs(or$XDG_DATA_HOME/mcp-bbs)macOS:
~/Library/Application Support/mcp-bbsWindows:
%LOCALAPPDATA%\mcp-bbs
Override the default location with:
To keep knowledge bases per-project (instead of user-wide):
Terminal Settings
Configure terminal size and keepalive:
Development
Setup
Code Quality
This project uses modern Python 3.11+ features and strict quality tools:
Type Checking:
mypy src/mcp_bbsLinting:
ruff check src/mcp_bbsFormatting:
ruff format src/mcp_bbsTesting:
pytestType Validation:
ty src/mcp_bbs
Run All Checks
Regenerate Diagrams
The architecture and workflow diagrams are generated from Mermaid files using mermaid-py:
Source files:
docs/diagrams/architecture.mmd→architecture.svgdocs/diagrams/workflow.mmd→workflow.svg
License
MIT License - Copyright (c) 2026 Tim Perkins
See LICENSE for details.