Skip to main content
Glama
sharedmemoryai

SharedMemory MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SHAREDMEMORY_API_KEYYesAgent API key
SHAREDMEMORY_API_URLNoAPI endpointhttps://api.sharedmemory.ai
SHAREDMEMORY_VOLUME_IDNoDefault volume

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
rememberA

Store a fact, note, or piece of information in SharedMemory. The memory pipeline will classify it, check for conflicts, extract knowledge, and build the graph automatically.

queryA

Retrieve context BEFORE answering. Searches SharedMemory for relevant memories using semantic similarity. Returns matching memories from vector search + related knowledge graph facts.

get_entityA

Get everything SharedMemory knows about a specific entity (person, project, concept, etc). Returns the summary, all facts, and relationships.

search_entitiesA

Search for entities in the knowledge graph by name. Useful for finding people, projects, concepts, etc.

get_graphB

Get an overview of the entire knowledge graph for a volume. Shows all entities and their relationships — like a map of everything SharedMemory knows.

list_volumesA

List all memory volumes (projects) this API key has access to. Each volume is an independent memory space.

delete_memoryB

Delete an existing memory by ID.

update_memoryB

Update the content of an existing memory by ID.

feedbackA

Submit feedback on a memory's relevance. Helps improve future recall quality.

batch_rememberA

Store multiple facts or pieces of information at once. More efficient than calling remember() in a loop.

get_memoryB

Retrieve a specific memory by its ID. Useful for viewing the full details of a memory found via recall.

get_profileA

Get a comprehensive profile for a volume or user. Returns categorized facts (identity, preferences, expertise, projects), relationships, recent activity, instructions, topics, stats, and a pre-formatted context_block for LLM injection.

get_contextA

Assemble a smart context block from stored memories. Returns a pre-formatted context string ready to inject into a system prompt.

list_documentsA

List all documents that have been uploaded and processed for a volume.

set_instructionA

Store a persistent instruction or rule for a volume. Instructions are automatically included in every context assembly — any agent querying this volume will see them. Use for coding conventions, project rules, team preferences, or architectural decisions that all agents should follow.

decideA

Ask SharedMemory to make a decision or answer a question based on all stored knowledge. Returns an answer with confidence score, supporting evidence, applicable procedures, and conflict detection. Use this when you need a definitive answer about 'what should we do?' or 'how do we handle X?'

profileA

Get a structured profile for any entity (person, project, team, concept, company). Returns their role, facts, relationships, recent activity, and confidence level. Use this to understand 'who is X?' or 'what is project Y?'

list_instructionsA

List all active instructions/rules for a volume. These are automatically included in every context assembly.

Prompts

Interactive templates invoked by user choice

NameDescription
summarize-knowledgeGet a natural language summary of everything in a volume's knowledge graph
what-do-you-know-aboutAsk what SharedMemory knows about a specific topic

Resources

Contextual data attached and managed by the client

NameDescription
graph-overview

Latest Blog Posts

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/sharedmemoryai/mcp-server'

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