apple2-mcp

apple2-mcp

An MCP server that wraps the Bobbin Apple II emulator, providing tools for memory access, screen reading, BASIC program execution, and disk image management to enable autonomous experimentation with Apple II control techniques.

Category
Visit Server

README

Apple II MCP Server

An MCP server for autonomous experimentation with Apple II control techniques via the Bobbin emulator.

Overview

This MCP server wraps the Bobbin Apple II emulator, providing tools for:

  • Memory read/write access
  • Screen reading
  • BASIC program tokenization and injection
  • Knowledge base for recording discovered techniques

Installation

pip install -e .

Usage

Configure in your Claude MCP settings:

{
  "mcpServers": {
    "apple2": {
      "command": "apple2-mcp"
    }
  }
}

Tools

Machine Control

  • boot - Start the Apple II emulator (Apple II+ or //e)
  • shutdown - Stop the emulator
  • reset - Warm or cold reset

Memory Access

  • peek / poke - Read/write memory
  • load_binary - Load binary data from hex string

Screen & Graphics

  • read_screen - Get 40x24 text display
  • capture_gr / read_gr_ascii - Lo-res graphics (40x48, 16 colors)
  • capture_hgr / read_hgr_ascii - Hi-res graphics (280x192)
  • capture_dgr / read_dgr_ascii - Double lo-res (80x48, //e only)
  • capture_dhgr / read_dhgr_ascii - Double hi-res (560x192, //e only)
  • clear_gr - Clear lo-res screen to solid color
  • clear_hgr - Clear hi-res screen to black

Input

  • type_text - Type into the emulator
  • send_key - Send special keys (RETURN, ESCAPE, CTRL-C, CTRL-RESET)

BASIC Execution

  • run_basic - Execute BASIC command and wait for prompt
  • run_and_capture - Run program and capture screen automatically
  • send_keys_and_capture - Send keys to interactive program, then capture

Tokenization

  • type_and_capture - Type BASIC and see tokenization
  • tokenize - Tokenize BASIC source using Bobbin
  • compare_tokenization - Compare against native Apple II tokenization
  • inject_tokenized_basic - Direct memory injection

Disk Image Tools

  • create_disk - Create new DOS 3.3 disk image
  • disk_catalog - List files on disk image
  • save_basic_to_disk - Save BASIC source to disk (auto-tokenizes)
  • save_file_to_disk - Save .bas file to disk

Observation

  • get_registers - Get 6502 CPU register state
  • get_basic_pointers - Get BASIC memory pointers

Knowledge Base

  • record_technique / query_techniques - Save and search techniques

Requirements

  • Python 3.10+
  • Bobbin emulator (compiled)
  • pexpect
  • mcp

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured