
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A high-performance Model Context Protocol server exposing Letta AI agent, memory, tool, source, job, file, and MCP server management operations through consolidated tools.
A Rust-based Model Context Protocol server for Letta AI. is cataloged as an MCP server attributed to oculairmedia. A high-performance Model Context Protocol server exposing Letta AI agent, memory, tool, source, job, file, and MCP server management operations through consolidated tools. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for A Rust-based Model Context Protocol server for Letta AI. are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It provides 7 consolidated tools with 103 operations covering agents, memory, tools, sources, jobs, files and folders, and MCP servers.
It supports stdio for clients such as Claude Desktop and Cursor, and HTTP for production deployments.
README.md · 622bffadc074 · 采集于 2026-11-13 09:06:23 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A high-performance Model Context Protocol (MCP) server for Letta AI, built with Rust and the TurboMCP framework.
tokio::join! and buffer_unorderedobject/array types with per-parameter descriptions (no generic Value params)npm install -g letta-mcp-server
The correct binary for your platform is installed automatically.
| Platform | Package |
|---|---|
| macOS Intel | letta-mcp-darwin-x64 |
| macOS Apple Silicon | letta-mcp-darwin-arm64 |
| Linux x64 | letta-mcp-linux-x64 |
| Linux arm64 | letta-mcp-linux-arm64 |
| Windows x64 | letta-mcp-windows-x64 |
docker pull ghcr.io/oculairmedia/letta-mcp-server-rust:rust-latest
docker run -d \
-p 6507:6507 \
-e LETTA_BASE_URL=http://your-letta-instance:8283 \
-e LETTA_PASSWORD=your-password \
-e TRANSPORT=http \
--name letta-mcp \
ghcr.io/oculairmedia/letta-mcp-server-rust:rust-latest
services:
letta-mcp:
image: ghcr.io/oculairmedia/letta-mcp-server-rust:rust-latest
container_name: letta-mcp
restart: unless-stopped
ports:
- '6507:6507'
environment:
LETTA_BASE_URL: ${LETTA_BASE_URL}
LETTA_PASSWORD: ${LETTA_PASSWORD}
TRANSPORT: http
PORT: 6507
RUST_LOG: info
env_file:
- .env
healthcheck:
test: ['CMD-SHELL', "timeout 1 bash -c '</dev/tcp/localhost/6507' || exit 1"]
interval: 30s
timeout: 10s
retries: 3
| Variable | Required | Default | Description |
|---|---|---|---|
LETTA_BASE_URL | Yes | — | Letta API URL (e.g. http://localhost:8283) |
LETTA_PASSWORD | Yes | — | Letta API password |
TRANSPORT | No | stdio | Transport mode: stdio or http |
PORT | No | 6507 | HTTP port (when TRANSPORT=http) |
RUST_LOG | No | info | Log level: debug, info, warn, error |
RUST_BACKTRACE | No | 0 | Enable backtraces (0 or 1) |
LETTA_MCP_MAX_VALUE_LEN | No | 500 | Max characters for block/passages/search values |
LETTA_MCP_CORE_MEMORY_PREVIEW_LEN | No | 200 | Max characters for core memory previews |
The server provides 7 consolidated tools with 103 operations:
| Tool | Operations | Description |
|---|---|---|
letta_agent_advanced | 28 | Agent lifecycle, messaging, conversations, context, export/import |
letta_memory_unified | 24 | Core memory, blocks, archival passages, archives, search |
letta_tool_manager | 13 | Tool CRUD, attach/detach, bulk operations |
letta_source_manager | 15 | Data sources, files, passages, attachments |
letta_job_monitor | 4 | Job tracking, cancellation, active monitoring |
letta_file_folder_ops | 8 | File sessions, folder management |
letta_mcp_ops | 11 | MCP server lifecycle, tool discovery, v2 API support |
list, create, get, update, delete, search, list_tools, send_message,
export, import, clone, get_config, bulk_delete, context, reset_messages,
summarize, stream, async_message, cancel_message, preview_payload,
search_messages, get_message, count, list_conversations,
get_conversation, send_conversation_message, cancel_conversation,
compact_conversation
get_core_memory, update_core_memory, get_block_by_label, list_blocks,
create_block, get_block, update_block, attach_block, detach_block,
list_agents_using_block, search_archival, list_passages, create_passage,
update_passage, delete_passage, search_memory, list_archives,
get_archive, create_archive, update_archive, delete_archive,
attach_archive, detach_archive, list_agents_using_archive
list, get, create, update, delete, upsert, attach, detach, bulk_attach,
generate_from_prompt, generate_schema, run_from_source, add_base_tools
list, get, create, update, delete, count, attach, detach, list_attached,
upload, delete_files, list_files, list_folders, get_folder_contents,
list_agents_using
list, get, cancel, list_active
list_files, open_file, close_file, close_all_files, list_folders,
attach_folder, detach_folder, list_agents_in_folder
add, update, delete, test, connect, resync, list_servers, list_tools,
register_tool, execute, attach_mcp_server
The Rust implementation includes significant response size optimizations for LLM context efficiency:
| Operation | Optimization | Size Reduction |
|---|---|---|
| Agent List | Default pagination (15 items), summary mode | 68-85% |
| Tool List | Default pagination (25 items), truncated descriptions | 70-90% |
| Memory Blocks | Excludes heavy fields in list mode | 60-80% |
| Source List | Summary mode, pagination | 75-95% |
All list operations support pagination:
{
"operation": "list",
"pagination": {
"limit": 25,
"offset": 0
}
}
List operations return summary data by default. Use get operation with specific ID for full details:
// Summary (default for list)
{
"id": "agent-123",
"name": "My Agent",
"model": "gpt-4",
"tool_count": 5
}
// Full (with get operation)
{
"id": "agent-123",
"name": "My Agent",
"model": "gpt-4",
"system_prompt": "...",
"tools": [...],
"memory_blocks": [...]
}
{
"mcpServers": {
"letta": {
"command": "letta-mcp",
"env": {
"LETTA_BASE_URL": "http://localhost:8283",
"LETTA_PASSWORD": "your-password"
}
}
}
}
{
"mcpServers": {
"letta": {
"command": "letta-mcp",
"env": {
"LETTA_BASE_URL": "http://localhost:8283",
"LETTA_PASSWORD": "your-password"
}
}
}
}
{
"mcp": {
"letta-mcp": {
"type": "remote",
"url": "http://localhost:6507/mcp",
"enabled": true
}
}
}
git clone https://github.com/oculairmedia/Letta-MCP-server.git
cd Letta-MCP-server
cargo build --release
LETTA_BASE_URL=http://your-letta:8283 \
LETTA_PASSWORD=your-password \
./target/release/letta-server
For local development, the Rust binary also loads a repo-level .env automatically, so
cargo run -p letta-server works without manually exporting variables first.
docker build -f Dockerfile.rust -t letta-mcp .
docker run -d \
-p 6507:6507 \
-e LETTA_BASE_URL=http://your-letta:8283 \
-e LETTA_PASSWORD=your-password \
-e TRANSPORT=http \
letta-mcp
letta-server/
├── src/
│ ├── main.rs # Entry point, transport selection
│ ├── lib.rs # Server init, compile-time tool registration
│ └── tools/
│ ├── mod.rs # Tool module exports
│ ├── response_utils.rs # Unified ToolResponse, pagination helpers
│ ├── validation_utils.rs # require_field, require_id, sdk_err
│ ├── id_utils.rs # ID parsing utilities
│ ├── agent_advanced/ # Agent operations (28 ops)
│ │ ├── crud.rs # list, create, get, update, delete, search
│ │ ├── messaging.rs # send_message, stream, async, preview
│ │ ├── conversations.rs # list, get, send, cancel, compact
│ │ └── management.rs # export, import, clone, config, bulk_delete
│ ├── memory_unified/ # Memory operations (24 ops)
│ │ ├── core.rs # get/update core memory
│ │ ├── blocks.rs # block CRUD, attach/detach
│ │ ├── passages.rs # archival passage CRUD
│ │ ├── archives.rs # archive CRUD, attach/detach
│ │ └── search.rs # search_archival, search_memory
│ ├── tool_manager.rs # Tool operations (13 ops)
│ ├── source_manager.rs # Source operations (15 ops)
│ ├── job_monitor.rs # Job operations (4 ops)
│ ├── file_folder_ops.rs # File/folder operations (8 ops)
│ └── mcp_ops.rs # MCP server v2 operations (11 ops)
├── tests/ # Integration tests
└── Cargo.toml
buffer_unordered for parallel fan-out)docker ps | grep letta-mcpdocker logs letta-mcpcurl http://localhost:6507/mcpLETTA_BASE_URL points to your Letta instanceLETTA_PASSWORD or LETTA_API_TOKEN is correcttools/listlist not list_agents)# View server logs
docker logs -f letta-mcp
# Enable debug logging
RUST_LOG=debug letta-mcp
git checkout -b feature/my-featurecargo testMIT License - see LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for A Rust-based Model Context Protocol server for Letta AI. from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/letta-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.