Skip to main content
Glama

Letta MCP Server

by oculairmedia
Dockerfile1.09 kB
FROM docker.io/node:24-slim # Set working directory WORKDIR /app # Add metadata labels LABEL maintainer="Letta Team" LABEL description="Letta MCP Server with multiple transport support (SSE, HTTP, stdio)" LABEL version="1.1.0" # Install curl for healthcheck RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* # Copy package files and install dependencies COPY package*.json ./ RUN npm install RUN npm install dotenv # Copy source code COPY src ./src # Create a non-root user and switch to it RUN groupadd -r letta && useradd -r -g letta letta RUN chown -R letta:letta /app USER letta # Expose the port EXPOSE 3001 # Default environment variables (can be overridden at build or runtime) ARG PORT=3001 ARG NODE_ENV=production ARG TRANSPORT=http ENV PORT=${PORT} ENV NODE_ENV=${NODE_ENV} ENV TRANSPORT=${TRANSPORT} # Add healthcheck HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:${PORT}/health || exit 1 # Run the server with configurable transport CMD ["sh", "-c", "node ./src/index.js --${TRANSPORT}"]

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