symbolics-mcp

symbolics-mcp

An MCP server that enables LLMs to evaluate Lisp expressions on a Symbolics Genera machine over TCP. It bridges JSON-RPC requests to the Genera environment to return evaluation results, stdout, and stderr.

Category
Visit Server

README

lisp-mcp

An MCP (Model Context Protocol) server that gives LLMs the ability to evaluate Common Lisp expressions. It provides up to three tools depending on configuration:

  • eval_host_cl -- always available; evaluates expressions in the MCP server's own SBCL process
  • eval_swank -- connects to a running Lisp via the Swank protocol (the backend used by SLIME and Sly)
  • eval_genera -- bridges to a Symbolics Genera machine over TCP

Prerequisites

  • SBCL on the host machine
  • Quicklisp installed in SBCL (the MCP server loads usocket and yason via Quicklisp)

MCP configuration

Add the following to your .mcp.json (or the MCP configuration of your client):

{
    "mcpServers": {
        "lisp": {
            "command": "/path/to/lisp-mcp.sh",
            "env": {
                "SWANK_PORT": "4005",
                "GENERA_HOST": "192.168.11.2"
            }
        }
    }
}

Only command is required. The environment variables enable the optional tools.

Tools

eval_host_cl

Evaluate a Common Lisp expression in the MCP server's own SBCL process. Always available, no configuration needed. Stdout, stderr, and the return value are captured and returned.

eval_swank

Evaluate a Common Lisp expression on a running Lisp that has a Swank server. This is the most useful tool for development -- it lets the LLM interact with your live Lisp image, load systems, inspect state, and run tests.

The Swank client implements the Swank wire protocol, handles debugger entry by automatically invoking the *ABORT restart and returning the error description, and responds to interactive prompts (e.g. y-or-n-p during compilation).

Start a Swank server in your target Lisp:

(swank:create-server :port 4005 :dont-close t)

The :dont-close t argument keeps the server listening after the first connection disconnects, so the MCP server can reconnect between requests.

To have Swank automatically start an additional server on a fixed port whenever you launch SLIME from Emacs with M-x slime, add the following to your Emacs configuration:

(add-hook 'slime-connected-hook
          (lambda ()
            (slime-eval-async '(swank:create-server :port 4005 :dont-close t))))

Then set SWANK_PORT in the MCP configuration to enable the tool.

Variable Default Description
SWANK_PORT (unset) TCP port of the Swank server. When set, enables eval_swank.
SWANK_HOST 127.0.0.1 Hostname or IP of the Swank server
SWANK_PACKAGE COMMON-LISP-USER Package in which expressions are evaluated

eval_genera

Evaluate a Lisp expression on a Symbolics Genera machine. Requires eval-server.lisp running on the Genera side.

Set GENERA_HOST in the MCP configuration to enable the tool.

Variable Default Description
GENERA_HOST (unset) Hostname or IP of the Genera machine. When set, enables eval_genera.
GENERA_PORT 8888 TCP port of the eval server
GENERA_TIMEOUT 300 Timeout in seconds for each evaluation

Setting up the Genera side

Copy eval-server.lisp to the Genera SYS:SITE; directory on the host filesystem:

cp eval-server.lisp /opt/symbolics/lib/sys.sct/site/eval-server.lisp

Then load it from the Genera Lisp Listener:

Load File SYS:SITE;eval-server.lisp

The file must be loaded once per boot. It defines a TCP server (:mcp-server) on port 8888 that accepts connections, reads length-prefixed Lisp expressions, evaluates them, and returns the result, stdout, and stderr as length-prefixed fields.

To verify it is running:

echo -n '11 (+ 1 2 3 4)' | nc -w 2 192.168.11.2 8888 | cat -v

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