openmemory-rag-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openmemory-rag-mcpSearch for Python programming"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenMemory RAG MCP Server
MCP server for importing documents into OpenMemory RAG knowledge base. Supports file uploads, URL imports, and text content ingestion.
Features
📄 Import Files: PDF, DOCX, TXT, MD, HTML
🌐 Import URLs: Webpages, articles, documentation
📝 Import Text: Raw text content
🔍 Search: Query the knowledge base
Related MCP server: qdrant-mcp
Installation
npm install
npm run buildConfiguration
Set environment variables:
export OPENMEMORY_URL="http://localhost:8080"
export OPENMEMORY_USER_ID="rag_user"Usage
With Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"openmemory-rag": {
"command": "node",
"args": ["/path/to/openmemory-rag-mcp/dist/index.js"],
"env": {
"OPENMEMORY_URL": "http://localhost:8080",
"OPENMEMORY_USER_ID": "my_knowledge_base"
}
}
}
}With Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"openmemory-rag": {
"command": "node",
"args": ["/path/to/openmemory-rag-mcp/dist/index.js"],
"env": {
"OPENMEMORY_URL": "http://localhost:8080"
}
}
}
}With Windsurf
Add to ~/.windsurf/mcp.json:
{
"mcpServers": {
"openmemory-rag": {
"command": "node",
"args": ["/path/to/openmemory-rag-mcp/dist/index.js"]
}
}
}Available Tools
1. import_file
Import a local file into the knowledge base.
Example:
"Import the file /home/user/document.pdf into my knowledge base"Parameters:
file_path(required): Absolute path to the fileuser_id(optional): User ID for the knowledge basetags(optional): Array of tags
2. import_url
Import content from a URL.
Example:
"Import this article: https://example.com/article"Parameters:
url(required): URL to importuser_id(optional): User IDtags(optional): Array of tags
3. import_text
Import raw text content.
Example:
"Save this to my knowledge base: [your text content]"Parameters:
content(required): Text contenttitle(optional): Title for the contentuser_id(optional): User IDtags(optional): Array of tags
4. search_knowledge
Search the knowledge base.
Example:
"Search my knowledge base for information about Python"Parameters:
query(required): Search queryuser_id(optional): User ID to search withinlimit(optional): Maximum results (default: 5)
Prerequisites
OpenMemory backend running on
http://localhost:8080Node.js 18+
Quick Start
Start OpenMemory backend:
cd /path/to/OpenMemory/packages/openmemory-js
npm run devBuild MCP server:
cd openmemory-rag-mcp
npm install
npm run buildConfigure AI tool (see Usage section above)
Restart AI tool (Claude/Cursor/Windsurf)
Test:
"Import the file /home/user/notes.pdf"
"Search for Python programming"Supported File Types
Type | Extensions |
Documents |
|
Web | Any URL |
Text | Raw text content |
Example Workflow
User: "Import my research paper at /home/user/research.pdf"
AI: ✅ File imported successfully!
Memory ID: abc-123
Tokens: 5000
Strategy: root-child
Sections: 3
User: "What does my research paper say about machine learning?"
AI: 🔍 Found 2 results for "machine learning":
1. [Score: 0.892] Machine learning is a subset of artificial intelligence...
2. [Score: 0.845] The paper discusses various ML algorithms including...Troubleshooting
MCP tools not showing up
Ensure OpenMemory backend is running:
curl http://localhost:8080/healthCheck MCP config file path is correct
Restart AI tool after configuration
Import fails
Verify file path is absolute
Check file permissions
Ensure OpenMemory backend is accessible
Search returns no results
Verify
user_idmatches the one used during importCheck if content was actually imported
Try broader search terms
Development
# Watch mode
npm run watch
# Build
npm run build
# Run directly
npm startLicense
MIT
Available Tools
4 toolsimport_fileA
Import a local file into OpenMemory RAG knowledge base. Supports PDF, DOCX, TXT, MD, HTML files.
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags for the document | |
| user_id | No | User ID for the knowledge base (optional, defaults to 'rag_user') | |
| file_path | Yes | Absolute path to the file to import |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of disclosing behavior. It states what the tool does and which file types it supports, but does not explain what happens during the import (e.g., processing, indexing), whether existing documents are updated or duplicated, or how errors and results are returned. For a tool that mutates a knowledge base, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, direct sentence focused on the essential facts: action, target resource, and supported file formats. No unnecessary words or filler. The main idea is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The schema documents all three parameters, and the description clarifies the tool's scope and file-type restrictions. However, with no output schema and no annotations, the agent is left without information about the import result, failure behavior, or side effects. It is adequate for a simple import tool but not fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, which gives the baseline 3. The description adds value beyond the schema by listing supported file extensions, which clarifies what file_path values are valid and helps the agent choose appropriate inputs.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Import'), the resource ('a local file into OpenMemory RAG knowledge base'), and supported formats (PDF, DOCX, TXT, MD, HTML). The phrase 'local file' distinguishes it from sibling tools import_url and import_text.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description makes the usage context clear: this tool is for local file imports, not URL or text imports. It does not explicitly state exclusions or name alternatives, but the sibling tool names and the phrase 'local file' provide enough directional guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
import_textA
Import raw text content into OpenMemory RAG knowledge base
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags | |
| title | No | Optional title for the content | |
| content | Yes | Text content to import | |
| user_id | No | User ID for the knowledge base (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It conveys that the operation mutates the knowledge base by importing content, but does not disclose permission requirements, deduplication or overwrite behavior, idempotency, or the response shape. This is a noticeable gap for a mutating tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single eight-word sentence that front-lods the action and resource with no filler. It is appropriately sized for a straightforward import operation, though some behavioral context was traded away in favor of brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a four-parameter import tool with no output schema and no annotations, the description provides the core purpose and destination. The schema covers parameters, but the agent gets no guidance on return values, duplicate handling, or multi-user scoping via user_id. Adequate for a simple call, yet with clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already documents all four parameters. The description adds no parameter-specific detail beyond the schema, though 'raw text' loosely maps to the required content field.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Import') and identifies the resource ('raw text content') and destination ('OpenMemory RAG knowledge base'). The modifier 'raw text' differentiates it from the sibling tools import_file and import_url, making it clear that this is for direct text ingestion rather than file or URL imports.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrasing implies the context: use this when you have raw text content to store in the knowledge base. It does not explicitly name alternatives or state when not to use it, but for a simple import tool the intended usage is clear enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
import_urlA
Import content from a URL into OpenMemory RAG knowledge base
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to import (webpage, article, etc.) | |
| tags | No | Optional tags for the content | |
| user_id | No | User ID for the knowledge base (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the full burden. 'Import content' implies a write operation, but it does not disclose side effects, idempotency, duplicate handling, network fetch behavior, or any dependencies like authentication. An agent is left guessing what happens after the call.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single concise sentence with no filler. Every word contributes to identifying the operation, the source, and the destination. It is front-loaded and easily scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple and all parameters are schema-documented, so the core operation is understandable. However, there is no output schema and the description does not mention return values, success/failure behavior, or post-import state. This leaves meaningful gaps for an agent deciding whether the call succeeded or what to do next.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents url, tags, and user_id. The description adds no additional parameter-level meaning such as URL format constraints, tag syntax, or how user_id affects routing, so baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a clear verb ('Import'), a specific resource ('content from a URL'), and a target system ('OpenMemory RAG knowledge base'). This makes the tool's purpose immediately distinguishable from siblings like import_file and import_text by source type.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly implies when to use it: when content is available at a URL. It does not explicitly mention alternatives or exclusions, but the input type is self-evident and the sibling names reinforce the distinction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_knowledgeB
Search the OpenMemory RAG knowledge base
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (default: 5) | |
| query | Yes | Search query | |
| user_id | No | User ID to search within (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the full burden of behavioral disclosure. It only states that the tool searches a RAG knowledge base; it does not mention whether results are ranked, whether it is read-only, what types of queries are supported, or any rate/access considerations. The verb 'search' implies a non-mutating operation, but little else is transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with zero wasted words. It states the operation and the target surface directly. It is appropriately concise for the tool's simplicity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description should give some indication of return values or result behavior, but it does not. It also lacks guidance on user_id scoping or how limit affects results. Given the 3-parameter search tool and no annotations, this description is too sparse to fully equip an agent to use the tool correctly in varied contexts.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds that the search targets the OpenMemory RAG knowledge base, giving the query parameter contextual meaning, but it does not explain limit or user_id semantics beyond their schema descriptions. The description adds marginal context but does not compensate beyond the baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Search the OpenMemory RAG knowledge base' uses a specific verb and resource, clearly indicating this tool performs retrieval on a knowledge base. It is readily distinguishable from the import_* siblings, though it does not explicitly name them. Slightly vague about what type of content is searched, but otherwise clear.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for retrieval, and the sibling import tools imply this is the search counterpart. However, there is no explicit guidance on when to prefer this over allernate approaches, no exclusions, and no mention of user_id filtering or limit usage. Usage context must be inferred from the tool name and schema.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
v1.0.0- First observed
import_file - First observed
import_text - First observed
import_url - First observed
search_knowledge
TDQS
The three import tools are clearly distinguished by source type (file, URL, raw text), and search_knowledge is obviously the retrieval counterpart. There is no meaningful overlap or ambiguity among these tools.
All tools follow a consistent verb_noun pattern: import_file, import_url, import_text, search_knowledge. The naming convention is uniform and predictable.
Four tools is well-scoped for an RAG knowledge base focused on ingestion and retrieval. Each tool covers a distinct and necessary operation without redundancy or bloat.
The core workflow of adding knowledge via three input types and searching it is covered. Minor gaps exist, such as no list, delete, or clear knowledge base operations, but they are not essential to the primary import-and-search purpose.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
DocBase MCP server for AI agents
Related MCP Servers
- AlicenseBqualityDmaintenanceA complete MCP server for Retrieval-Augmented Generation with file management and vector memory for agents. Supports multiple document formats (PDF, DOCX, TXT, MD, CSV, JSON) with semantic search using Hugging Face embeddings and ChromaDB for efficient vector storage.11121MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for document ingestion and semantic search on Qdrant. Enables ingesting local documents, generating embeddings with OpenAI, and performing vector search with metadata filters.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceMCP server for semantic search over PDF documents using RAG, pgvector, and OpenAI embeddings. Includes a web app for document upload and management.-
- FlicenseNot gradedqualityCmaintenanceMCP server that ingests PDF documents into pgvector for semantic search and RAG pipelines. It handles extraction, chunking, local embeddings, and storage, enabling agents to make PDFs searchable via natural language.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/wXingHe/openmemory-rag-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server