CL-HTTP Welcome to The Common Lisp Hypermedia Server


  1. Quick Start
  2. Current Release
  3. Server Features
  4. Documentation
  5. Reference Manuals
  6. Common Lisp Source Code
  7. User Discussion Group
  8. Bug Reports
  9. Acknowledgments

The Common Lisp Hypermedia Server & Web Application Tool Suite (CL-HTTP) provides a complete, integrated web application platform: server, client, proxy, HTML synthesis, W3P presentation types, constraint-guided web walker, full-text search, and LLM integration. Originally developed in 1994 at the MIT AI Laboratory by John C. Mallery and production-tested in the White House Electronic Publications System (1994–2001), CL-HTTP was the first object-oriented Web server and the first HTTP 1.1 production server.

Web applications can be developed interactively on Symbolics Genera using its unmatched debugger, inspector, and documentation tools, and deployed without modification on LispWorks or SBCL for production service. All three active ports support the Model Context Protocol with 143 tools for LLM-assisted development.


Major Features

Meta-Object Protocol Specifically, CL-HTTP provides:

Standards & Capabilities

HTTP/1.1 Compliant Server, Caching Proxy, SSL Proxy, Reverse Proxy, advanced Web Walker, programmatic Client, and many tools for Web development.
HTTP/2 (RFC 9113) server, client, and proxy on LispWorks and SBCL with ALPN negotiation, HPACK header compression, multiplexed streams, flow control, and connection pooling. H2 at parity with HTTPS/1.1 throughput.
TLS 1.3 and TLS 1.2 support for server, client, proxy, and Web walker on LispWorks (OpenSSL) and SBCL (pure-tls, a pure Common Lisp TLS 1.3 implementation).
X.509 client certificate support for server, client & Web walker.
Access Control via subnets, passwords (Basic & Digest Authentication) & X.509 certificates.
HTML Synthesis for HTML5, XHTML 1.0, HTML 4.0 with backward compatibility to earlier standards.
HTML5 Parser with DOM registry, structured document access, and MCP integration for LLM-driven web analysis.
Markdown generation with streaming output for LLM responses, and Markdown to HTML translation for Web display.
Presentation-based Interfaces with W3P.
Constraint-guided W4 Web Walker with programmable actions, depth/host/content-type constraints, site maintenance examples (link checking, mirroring), and MCP tools for LLM-driven crawling.
Large Language Model Interface for Anthropic, Google, OpenAI, xAI, LM Studio, and Ollama with chat, streaming, document upload, and conversation history.
Model Context Protocol (MCP) Server with 143 tools for LLM-assisted development: evaluation, debugging, profiling, introspection, LMACS s-expression editing, HTML parsing, W4 web walking, and multi-agent collaboration.

Development & Operation

Extensible, modular, object-oriented architecture based on the CLOS meta-object protocol — the first object-oriented Web server (1994).
Computed URLs written in Lisp supersede conventional CGI scripts and provide more power than Java Servlets.
Advanced condition handling architecture.
Multi-threaded with SMP support on LispWorks and SBCL.
The Reference Manual covers all subsystems, with a tutorial for building your first application.
Self-documenting: the LispDoc facility dynamically browses all exported operators.
Working examples in an example Web site to get you started quickly.
Web interface to the Symbolics Document Examiner serves 16,457 topics from 33 Genera manuals.
Web-based configuration of the server & user access control.
Modular & extensible logging.
Site Indexing & Information Retrieval with LambdaVista.
Multiple Virtual Hosts on the same IP address.
Email HyperArchive.
Mobile code emission for client-side JavaScript, Java, or plug-ins.
Clean abstractions facilitate security audits.

Production & Deployment

Rapid prototyping & customization for research, product, or protocol development.
Source compatible over major hardware, operating-system, and Lisp platforms.
Complete source code (portable & platform-specific).
Proven in production Web applications since 1994.
Production-quality, cross-platform application delivery on LispWorks and SBCL with advanced development on Symbolics Genera.

Obtaining the Current Release

The Current Version can be retrieved from the CL-HTTP Home Page, which centralizes information about this Web server and related Common Lisp WWW tools.


Common Lisp Platforms

The server has been ported to a number of Common Lisp implementations running on a variety of computer hardware.

Active Ports

Legacy Ports


Documentation

The Common Lisp Hypermedia Server (CL-HTTP) is here for you to rapidly prototype and smoothly evolve novel or complex applications for the World Wide Web. After reading the WWW-94 conference paper , the first documentation items below should be enough to get you up and running.

Browsing the Documentation: Watch out for URLs on the local host that compute their output in some interesting way. When operating in standalone mode or over a network not connected to the internet, you can still follow all the documentation and source code that comes with the server. In both cases, you may wish to set your browser so that you can see the URL under the mouse, and especially, the host that serves it.

Questions: If you have any questions, send mail to WWW-CL@CSAIL.MIT.EDU.

Configuration Instructions explains how to start up World Wide Web service on specific Lisp platforms.

Active Ports:

Legacy Ports:

Web-based server configuration is available after loading and starting the server successfully.

Release Notes describe new features and issues for specific platforms

Active Ports:

Legacy Ports:

Server Features illustrates various things you can do with CL-HTTP using live examples which you can copy and edit for your own applications. You can brighten up your pages with some basic icons.

Documentation for exporting documents and for using image maps.

Computing Responses explains the how to write response functions and accept user input with fill-out forms.

W3P Presentation System explains how to use presentation types with HTML forms.

Authentication explains the how to control access to resources with user names and passwords as well as secure subnets.

Proxy Service explains how to configure the server for HTTP proxy service.

VRML Generation explains the how to generate 3D scenes under program control with the Virtual Reality Modeling Language.

HTML Parser explains how to parse HTML using tools distributed with CL-HTTP.

Site Indexing & Information Retrieval explains the how to use LambdaVista -- a hybrid classification and retrieval system that indexes your Web site, including email HyperArchives, and supports full-text retrieval.

Development Projects describe useful additions to CL-HTTP that volunteers might want to work on.

Guidelines and Hints on writing well-abstracted yet efficient code for CL-HTTP.

Internet Standards for the World Wide Web.

Developer Tools enumerates some tools that may be useful to cl-http developers.

Model Context Protocol Server enables AI assistants to interact with a running Common Lisp image via 143 structured tools for evaluation, introspection, debugging, profiling, s-expression editing, web operations, and multi-agent collaboration.

Large Language Model Interface provides a generic interface for interacting with cloud and local LLMs (Anthropic, Google, OpenAI, xAI, LM Studio, Ollama) with chat, streaming, document upload, and conversation history.

Extending the Server explains some ways to customize the server for new behaviors.

Brief History recounts the origins of this server and some early applications.

Reference Materials indexes a valuable range of technical documentation and software repositories relevant for WWW and Lisp development.

Acknowledgments credits the people who helped out.

Reference Manuals

Reference documentation is dynamically available for all major components of CL-HTTP. The Find Documenation facility is a powerful tool for obtaining specific documenation about practically every class, method, function, macro, and variable in the systems.

  1. HTML5 Synthesis Tools are used to generate HTML for dynamic or static uses.
  2. HTTP Operators and Variables govern the operation of the server.
  3. URL Operators and Variables control parsing and representation of uniform resource locators.
  4. W3P Presentation Operators present data and accept input from users.
  5. VRML 1.0 Synthesis Tools generate 3D VRML scenes.
  6. Utilities support the other modules.


Common Lisp Source Code

In the table below, each logical pathname is hyperlinked to the directory for each component.

PortableLocation
Exampleshttp:examples;
Serverhttp:server;
W3P Presentation Systemhttp:w3p;
Proxy Servicehttp:proxy;
Basic Clienthttp:client;
LambdaVista Search Toolhttp:lambda-ir;
W4 Web Walkerhttp:w4;
HTML Parserhttp:html-parser;
Email HyperArchivehttp:examples;mail-archive.lisp
CLIM Interfaceshttp:clim;
SMTP Mail http:smtp;
FTP Client http:ftp;
HTTP-LLM Interfacehttp:llm;
MCP Server & LMACShttp:llm;mcp;
Active PortsLocation
LispWorkshttp:lw;
SBCLhttp:sbcl;
Symbolicshttp:lispm;
Legacy PortsLocation
Allegrohttp:acl;obc;
Allegro 5.0.1http:acl;jkf;
CMU CLhttp:cmucl;
Lucidhttp:lcl;
Macintoshhttp:mcl;
Scieneer CLhttp:scl;
User-ContributedLocation
Portablehttp:contrib
Allegrohttp:acl;contrib;
LispWorkshttp:lw;contrib;
MCLhttp:mcl;contrib;
SCLhttp:scl;contrib;


User Discussion Group

Learn about new releases, usage, and applications of CL-HTTP as well as general WWW programming with Common Lisp on www-cl@csail.mit.edu. Note that you must join the discussion group before sending mail to it, or the listserve will ignore your mail. Although a little inconvenient, this listserve configuration prevents rampant spam mail from reaching your inbox and the archives.

Subscribe by sending email to www-cl-request@csail.mit.edu with subject subscribe. Unsubscribe by sending the same address with subject unsubscribe.


Bug Reports

When reporting bugs, it is essential that you explain how to reproduce the problem, provide a backtrace when relevant, and include the server version, the Common Lisp version, operating system version, and hardware configuration.

If possible, use the sources to fix the problem and send the fix along with the report.

Please report all bugs to bug-cl-http@cl-http.com.


John C. Mallery -- M.I.T. Computer Science & Artificial Intelligence Laboratory