Skip to main content
Glama

Letta MCP Server

by oculairmedia

MseeP.ai Security Assessment Badge

Letta MCP Server

A server that provides tools for agent management, memory operations, and integration with the Letta system.

Quick Setup

Option 1: Run with Node.js

# Development (with hot reload) npm run dev:sse # SSE transport # Production npm run build # Build TypeScript first npm run start:sse # SSE transport

Option 2: Run with Docker

# Build and run locally docker build -t letta-mcp-server . docker run -d -p 3001:3001 -e PORT=3001 -e NODE_ENV=production --name letta-mcp letta-mcp-server # Or use the public image docker run -d -p 3001:3001 -e PORT=3001 -e NODE_ENV=production --name letta-mcp ghcr.io/oculairmedia/letta-mcp-server:latest

Directory Structure

  • index.js - Main entry point

  • core/ - Core server functionality

  • tools/ - Individual tool implementations

  • transports/ - Server transport implementations (stdio and SSE)

Available Tools

Agent Management

Tool

Description

Required Parameters

Optional Parameters

create_agent

Create a new Letta agent

name, description

model, embedding

list_agents

List all available agents

-

filter

prompt_agent

Send a message to an agent

agent_id, message

-

get_agent

Get agent details by ID

agent_id

-

modify_agent

Update an existing agent

agent_id, update_data

-

delete_agent

Delete an agent

agent_id

-

clone_agent

Clone an existing agent

source_agent_id, new_agent_name

override_existing_tools, project_id

bulk_delete_agents

Delete multiple agents

-

agent_ids, agent_name_filter, agent_tag_filter

Memory Management

Tool

Description

Required Parameters

Optional Parameters

list_memory_blocks

List all memory blocks

-

filter, agent_id, page, pageSize, label

create_memory_block

Create a new memory block

name, label, value

agent_id, metadata

read_memory_block

Read a memory block

block_id

agent_id

update_memory_block

Update a memory block

block_id

value, metadata, agent_id

attach_memory_block

Attach memory to an agent

block_id, agent_id

label

Tool Management

Tool

Description

Required Parameters

Optional Parameters

list_tools

List all available tools

-

filter, page, pageSize

list_agent_tools

List tools for a specific agent

agent_id

-

attach_tool

Attach tools to an agent

agent_id

tool_id, tool_ids, tool_names

upload_tool

Upload a new tool

name, description, source_code

category, agent_id

bulk_attach_tool_to_agents

Attach a tool to multiple agents

tool_id

agent_name_filter, agent_tag_filter

Additional Tools

  • Model Management: list_llm_models, list_embedding_models

  • Archive Management: list_passages, create_passage, modify_passage, delete_passage

  • MCP Server Management: list_mcp_servers, list_mcp_tools_by_server

  • Import/Export: export_agent, import_agent

Docker Operations

# View container logs docker logs -f letta-mcp # Stop the container docker stop letta-mcp # Update to latest version docker pull ghcr.io/oculairmedia/letta-mcp-server:latest docker stop letta-mcp docker rm letta-mcp docker run -d -p 3001:3001 -e PORT=3001 -e NODE_ENV=production --name letta-mcp ghcr.io/oculairmedia/letta-mcp-server:latest

Configuration with MCP Settings

Add the server to your mcp_settings.json:

"letta": { "command": "node", "args": [ "--no-warnings", "--experimental-modules", "path/to/letta-server/index.js" ], "env": { "LETTA_BASE_URL": "https://your-letta-instance.com", "LETTA_PASSWORD": "yourPassword" }, "disabled": false, "alwaysAllow": [ "upload_tool", "attach_tool", "list_agents", "list_memory_blocks" ], "timeout": 300 }

For remote instances, use the URL configuration:

"remote_letta_tools": { "url": "http://your-server:3001/sse", "disabled": false, "alwaysAllow": [ "attach_tool", "list_agents", "list_tools", "get_agent" ], "timeout": 120 }
Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

An MCP server implementation that enables interaction with the Letta API for managing agents, memory blocks, and tools in the Letta system.

  1. Quick Setup
    1. Option 1: Run with Node.js
    2. Option 2: Run with Docker
  2. Directory Structure
    1. Available Tools
      1. Agent Management
      2. Memory Management
      3. Tool Management
      4. Additional Tools
    2. Docker Operations
      1. Configuration with MCP Settings

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.
          Last updated -
          42
          507
          104
          MIT License
          • Apple
        • A
          security
          F
          license
          A
          quality
          An MCP server that enables LLMs to interact with Agent-to-Agent (A2A) protocol compatible agents, allowing for sending messages, tracking tasks, and receiving streaming responses.
          Last updated -
          5
          26
        • Atlaofficial

          A
          security
          A
          license
          A
          quality
          The Atla MCP Server provides a standardized interface for LLMs to interact with the Atla API for state-of-the-art LLMJ evaluation.
          Last updated -
          2
          16
          MIT License
          • Apple
          • Linux
        • A
          security
          A
          license
          A
          quality
          A meta-MCP server that manages and aggregates other MCP servers, enabling LLMs to dynamically extend their own capabilities by searching for, adding, and configuring tool servers.
          Last updated -
          16
          80
          AGPL 3.0
          • Linux
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/oculairmedia/Letta-MCP-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server