Letta MCP Server logo

Letta MCP Server

by MCP-Mirror

An MCP (Model Context Protocol) server implementation for interacting with the Letta API. This server provides tools for managing agents, memory blocks, and tools in the Letta system.

View on GitHub

Last updated: N/A

What is Letta MCP Server?

The Letta MCP Server is an implementation of the Model Context Protocol designed to interface with the Letta API. It facilitates the management of agents, memory blocks, and tools within the Letta ecosystem.

How to use Letta MCP Server?

To use the server, clone the repository, install dependencies using npm install, and configure the .env file with your Letta API URL and password. Then, use the provided npm scripts (npm run build, npm run start, npm run dev) to build and run the server. Integrate with Cline using the provided examples to interact with agents, memory blocks, and tools.

Key features of Letta MCP Server

  • Create and manage Letta agents

  • Manage memory blocks with filtering and pagination

  • Attach memory blocks to agents with custom labels

  • Manage agent tools

  • Send messages to agents and receive responses

Use cases of Letta MCP Server

  • Managing agent personalities and behaviors using memory blocks.

  • Storing and retrieving conversation history.

  • Implementing system-level instructions and configurations.

  • Integrating custom tools with agents for specific tasks.

FAQ from Letta MCP Server

How do I configure the Letta API URL and password?

Create a .env file in the root directory and set the LETTA_BASE_URL and LETTA_PASSWORD variables.

How do I start the server in development mode?

Run npm run dev to start the server with watch mode enabled.

What are the different types of memory blocks?

Memory blocks can be labeled as persona, human, system, or custom, each serving a different purpose.

How do I attach a memory block to an agent?

Use the attach_memory_block tool with the agent ID, block ID, and a custom label.

How do I upload a new tool to the server?

Use the upload_tool tool with the tool's name, description, source code, category, and an optional agent ID to automatically attach it to an agent.