Back to Home
tobs-code icon

a-mem-mcp-server

Verified Safe

by tobs-code

Overview

An agentic memory system for LLM agents that stores, links, evolves, and retrieves information based on the Zettelkasten principle, enhanced with autonomous maintenance enzymes and deep web research capabilities.

Installation

Run Command
python -m src.a_mem.main

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
  • MAX_NEIGHBORS
  • MIN_SIMILARITY_SCORE
  • 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

The system externalizes API keys and configurations via .env files. It implements input validation for MCP tool parameters, reducing common injection risks. The optional HTTP server for graph visualization is read-only. External network calls (Ollama, OpenRouter, Google Search, Jina Reader, Unstructured) are handled using the 'requests' library, relying on standard API security. However, the Researcher Agent's web content fetching and processing of external data sources introduces potential attack surfaces (e.g., if URLs are not perfectly sanitized before fetching, or if fetched content could lead to processing vulnerabilities, though current implementations use robust libraries like Jina Reader and Unstructured). Local file I/O for data storage (graph, chroma, events) requires the host system to have appropriate file permissions.

Similar Servers

Stats

Interest Score33
Security Score8
Cost ClassHigh
Avg Tokens5000
Stars2
Forks0
Last Update2026-01-10

Tags

LLM AgentsKnowledge GraphZettelkastenMemory SystemAISemantic SearchWeb ResearchMCP Server