
Lingua Universale MCP Server
io.github.rafapra3008Published by GitHub account rafapra3008v0.1.1Updated Oct 24, 2026
Verify AI agent communication with session types and formal proofs
Overview
A local MCP server for Lingua Universale, a session-type tool that lets an assistant define, verify and enforce protocols for AI agent conversations.
- What you can do
- Define agent protocols with roles, message order and choice branches, then check and formally verify properties such as termination, deadlock freedom and role participation. Lint, format and visualize protocols, and scaffold projects from verified templates. Run protocols and audit MCP server protocol manifests. Generate Lean 4 proofs and Python code from protocol sources.
- When to use it
- Useful when you are building multi-agent systems and want the assistant to write, verify or debug the communication protocol between agents, or to add protocol verification to a CI pipeline.
- Requirements
- Runs as a local process over stdio, launched with uvx from the lu-mcp-server PyPI package, so a Python environment with uv is needed. No authentication, environment variables or headers are declared.
Installation
In SourceWeft
- Open Lingua Universale MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Lingua Universale
A language for verified AI agent protocols.
[PyPI] [License: Apache 2.0] [Zero Dependencies] [VS Code] [Discord]
Try it in your browser -- no install needed. Watch AI agents live -- 3 agents on a verified protocol.
The Problem
Your AI agents talk to each other, but nothing guarantees they follow the rules. Wrong sender, wrong message order, missing steps -- and you only find out in production.
Lingua Universale (LU) is a type checker for AI agent conversations. You define the protocol, LU proves it's correct, and the runtime enforces it.
The protocol says reviewer goes next. The runtime blocks it. Not because you trust the code -- because the session type makes it impossible.
Install
Or try it first: Playground (runs in your browser via Pyodide).
Write a Protocol
Then verify it:
Mathematical proof. Not a test that passes today and fails tomorrow.
What You Get
Zero external dependencies. Pure Python stdlib.
CLI
CI Integration
Add protocol verification to your GitHub Actions workflow:
Exit code is non-zero on violations -- works with any CI system.
How It Works
LU is built on multiparty session types (Honda, Yoshida, Carbone -- POPL 2008). Session types describe communication protocols as types: if two processes follow the same session type, they cannot deadlock, messages cannot arrive in the wrong order, and the conversation always terminates.
The pipeline:
LU doesn't replace your AI agent framework. It makes it safe. Like TypeScript for JavaScript -- you keep your tools, you add guarantees.
Examples
LU Debugger -- Live web app: 3 AI agents (Customer, Warehouse, Payment) communicate on a verified OrderProcessing protocol. Click "Break" to see a protocol violation blocked in real time. Source code.
See the examples/ directory:
- Agent Orchestration -- 3 AI agents with nested choice, 8/8 properties proved
- Live Runner -- Real Claude API agents on a verified protocol
- Standard Library -- 20 verified protocols across 5 categories
Or try the interactive Colab notebook -- 2 minutes, zero setup.
More from CervellaSwarm
Lingua Universale is the core project by CervellaSwarm. We also publish these Python packages:
All Apache 2.0, Python 3.11+, tested, documented.
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
- Bug reports: GitHub Issues
- Security: See SECURITY.md for responsible disclosure
License
Apache License 2.0 -- see LICENSE.
Copyright 2025-2026 CervellaSwarm Contributors.
Lingua Universale -- Verified protocols for AI agents.
Playground | LU Debugger | PyPI | VS Code | Blog | Colab Demo
Source: README.md at commit e1aea16
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts