Back to Home
tobsentobsentobs icon

a-mem-mcp-server

by tobsentobsentobs

Overview

An agentic memory system for LLM agents based on the Zettelkasten principle, providing explicit graph-based memory, semantic retrieval, and autonomous maintenance through an MCP server.

Installation

Run Command
python mcp_server.py

Environment Variables

  • LLM_PROVIDER
  • OLLAMA_BASE_URL
  • OLLAMA_LLM_MODEL
  • OLLAMA_EMBEDDING_MODEL
  • OPENROUTER_API_KEY
  • OPENROUTER_BASE_URL
  • OPENROUTER_LLM_MODEL
  • OPENROUTER_EMBEDDING_MODEL
  • TCP_SERVER_ENABLED
  • TCP_SERVER_HOST
  • TCP_SERVER_PORT
  • RESEARCHER_ENABLED
  • RESEARCHER_CONFIDENCE_THRESHOLD
  • RESEARCHER_MAX_SOURCES
  • RESEARCHER_MAX_CONTENT_LENGTH
  • JINA_READER_ENABLED
  • JINA_READER_HOST
  • JINA_READER_PORT
  • UNSTRUCTURED_ENABLED
  • UNSTRUCTURED_API_URL
  • UNSTRUCTURED_API_KEY
  • UNSTRUCTURED_USE_LIBRARY
  • GOOGLE_SEARCH_ENABLED
  • GOOGLE_API_KEY
  • GOOGLE_SEARCH_ENGINE_ID
  • GRAPH_BACKEND
  • REDIS_HOST
  • REDIS_PORT
  • REDIS_PASSWORD

Security Notes

CRITICAL: Google Search API Key and Search Engine ID are hardcoded as fallback values in `src/a_mem/config.py`. This is a severe security vulnerability as it exposes credentials directly in the source code if not explicitly overridden by environment variables. This could lead to unauthorized API usage and potential billing. While `SafeGraphStore` and parameter validation add robustness, the hardcoded API key overshadows these positives. The system also makes external network calls to various APIs (OpenRouter, Google Search, Jina Reader, Unstructured) and uses file I/O for storage and temporary files, which require trust in external services and careful URL sanitization for researcher agent functions. Direct Cypher query construction in FalkorDB adapters has minor potential for injection if input sanitization were flawed, but appears to be handled reasonably for now. Event log (`events.jsonl`) can grow indefinitely without rotation or size limits.

Similar Servers

Stats

Interest Score38
Security Score3
Cost ClassHigh
Avg Tokens2000
Stars1
Forks0
Last Update2025-11-29

Tags

Agentic MemoryKnowledge GraphLLM IntegrationSemantic SearchIDE Tooling