Sanctum Letta MCP
Model Context Protocol Server for AI Agent Communication
Sanctum Letta MCP (SMCP) is the foundation of the SanctumOS ecosystem, providing a standardized interface for AI agents to interact with external tools and services through the Model Context Protocol (MCP).
What is this for?
SMCP serves as the bridge between AI agents and external tools, enabling agents to:
- Execute commands and tools through a standardized interface
- Access external services and APIs
- Integrate with development tools and automation systems
- Communicate with other agents and systems
Quick Installation
Prerequisites
- Python 3.8 or higher
- pip package manager
Install & Run
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python smcp/mcp_server.py
git clone https://github.com/sanctumos/smcp.git cd smcp python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt
python smcp/mcp_server.py
### Verify Installation
bash
curl http://localhost:8000/health
# Should return: {"status": "healthy", "version": "1.0.0"}
Verify Installation
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python smcp/mcp_server.py
curl http://localhost:8000/health
Should return: {"status": "healthy", "version": "1.0.0"}
### Verify Installationbash curl http://localhost:8000/health # Should return: {"status": "healthy", "version": "1.0.0"}
Basic Configuration
Environment Variables
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python smcp/mcp_server.py
SMCP_PORT=8000 SMCP_HOST=localhost SMCP_LOG_LEVEL=INFO SMCP_PLUGINS_DIR=./plugins SMCP_AUTO_DISCOVER=true
### Verify Installation
bash
curl http://localhost:8000/health
# Should return: {"status": "healthy", "version": "1.0.0"}
Directory Structure
### Verify Installationbash curl http://localhost:8000/health # Should return: {"status": "healthy", "version": "1.0.0"}
smcp/ âââ plugins/ â âââ botfather/ # Telegram integration â âââ devops/ # Development tools â âââ gmail/ # Gmail API (smcp-gmail) â âââ github/ # GitHub/Git CLI (smcp-plugin-github) â âââ image_analysis/ # Venice AI vision (smcp-image-analysis) â âââ doc_manager/ # Doc management (smcp-doc-manager) â âââ cursor_cli/ # Cursor headless (smcp-cursor-cli) â âââ moltbook/ # Moltbook social (smcp-moltbook) â âââ bitlaunch/ # BitLaunch cloud (smcp-bitlaunch.io) â âââ custom/ # Your custom plugins âââ smcp/ âââ mcp_server.py # Main server
### Verify Installation
bash
curl http://localhost:8000/health
# Should return: {"status": "healthy", "version": "1.0.0"}
Plugin Ecosystem
SMCP's plugin architecture has grown into a rich ecosystem. Each plugin is a standalone repository that, when placed in the plugins/ directory, is auto-discovered at startup and its commands become MCP tools.
See the SMCP Plugins overview for full documentation of all available plugins, including:
| Plugin | What it does |
|---|---|
| smcp-cursor-cli | Cursor CLI in headless/non-interactive mode |
| smcp-doc-manager | Letta sources/folders admin, markdown â PDF/DOCX |
| smcp-image-analysis | Image interpretation via Venice AI vision |
| smcp-gmail | Gmail API (list, read, send, labels) |
| smcp-plugin-github | GitHub CLI and Git wrappers |
| smcp-moltbook | Moltbook social network for AI agents |
| smcp-bitlaunch.io | BitLaunch cloud server provisioning |
Built-in Plugins
- BotFather Plugin: Telegram bot management and communication
- DevOps Plugin: Development and deployment tools
- System Plugin: Basic system operations and monitoring
Installing a Plugin
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python smcp/mcp_server.py
cd /path/to/smcp/plugins git clone https://github.com/sanctumos/smcp-gmail.git gmail pip install -r gmail/requirements.txt
Restart SMCP â the plugin is auto-discovered
### Verify Installationbash curl http://localhost:8000/health # Should return: {"status": "healthy", "version": "1.0.0"}
CLI Tools
Server Management
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python smcp/mcp_server.py
python smcp/mcp_server.py python smcp/mcp_server.py --config custom_config.json python smcp/mcp_server.py --list-tools
### Verify Installation
bash
curl http://localhost:8000/health
# Should return: {"status": "healthy", "version": "1.0.0"}
Plugin Management
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python smcp/mcp_server.py
python smcp/plugins/botfather/cli.py --list python smcp/plugins/botfather/cli.py --test
### Verify Installationbash curl http://localhost:8000/health # Should return: {"status": "healthy", "version": "1.0.0"}
Common Tasks
Adding a New Plugin
- Clone the plugin repo into
plugins/ - Install any plugin-specific dependencies
- Restart the server â auto-discovery handles the rest
Connecting an AI Agent
- Configure your agent framework (Letta, etc.) to use the MCP protocol
- Point to the SMCP server endpoint (default:
http://localhost:8000) - Authenticate using API keys if configured
- Available tools appear automatically
Monitoring and Debugging
- Health Check:
GET /health - Tool List:
GET /tools - Plugin Status:
GET /plugins - Logs: Check server console output
Getting Help
- GitHub Issues: Report bugs and request features
- GitHub: sanctumos/smcp
License
- Code: AGPLv3 â GNU Affero General Public License v3.0
- Documentation: CC-BY-SA 4.0 â Creative Commons Attribution-ShareAlike 4.0
Sanctum Letta MCP â the tool layer of the SanctumOS ecosystem.