MollyGraph
БесплатноНе проверенLocal-first self-improving knowledge graph for AI agents with three-layer entity extraction, parallel graph and vector retrieval, and automated LoRA fine-tuning
Описание
Local-first self-improving knowledge graph for AI agents with three-layer entity extraction, parallel graph and vector retrieval, and automated LoRA fine-tuning.
README
MollyGraph
Embedded local-first graph memory for AI agents.
Quick Start · Default Stack · How It Works · MCP · HTTP API · Config
MollyGraph is a local graph-and-vector memory service for agents.

The default path is simple:
- ingest text
- extract entities and relationships with
GLiNER2 - store graph and vectors locally in
Ladybug - query through
MCP,HTTP, or the PythonSDK
The goal is not “a vector store with a wrapper.” The goal is structured local memory that agents can actually use.
Quick Start
git clone https://github.com/brianmeyer/mollygraph.git
cd mollygraph
./scripts/install.sh
./scripts/start.sh
The canonical local runtime is Python 3.12.
./scripts/install.sh will use python3.12 when it is available, or uv to provision Python 3.12 automatically.
The install script:
- creates
service/.envfromservice/.env.exampleif needed - creates the runtime venv at
service/.venv - skips model downloads unless
MOLLYGRAPH_PRELOAD_MODELS=1is set
Default local API:
- base URL:
http://127.0.0.1:7422 - auth:
Bearer dev-key-change-in-production
Production-style smoke test:
service/.venv/bin/python scripts/production_smoke.py --json
That smoke test uses lightweight fixture extraction by default so it can verify
the runtime without loading large local models. Use --real-models only when the
model cache is warm and you intentionally want to exercise GLiNER2.
Default Stack
- graph storage:
Ladybug - vector storage:
Ladybug - extraction:
GLiNER2 - default embeddings:
Snowflake/snowflake-arctic-embed-s - queue:
SQLite - client surfaces:
MCP,HTTP,SDK
The default runtime does not require Neo4j. Neo4j-backed audit, training, and decision-oriented flows are optional compatibility surfaces, not the base product.
How It Works
text in
-> SQLite extraction queue
-> GLiNER2 extraction
-> speaker anchoring + relation gate
-> Ladybug graph + Ladybug vector storage
-> MCP / HTTP / SDK query surface
Default retrieval path:
- graph exact-match and vector similarity run in parallel
- results are merged into one response
The current graph and vector layers use separate .lbug files by default.
That keeps the runtime predictable while the shared-Ladybug storage path is evaluated.
MCP
Example MCP config:
{
"mcpServers": {
"mollygraph": {
"command": "mollygraph-mcp",
"args": ["--base-url", "http://localhost:7422", "--api-key", "YOUR_KEY"]
}
}
}
Default tools:
add_episodesearch_factssearch_nodesget_entity_contextget_queue_statusdelete_entityprune_entities
Optional audit or training tools are only exposed when the running backend reports support for them.
Python SDK
pip install "git+https://github.com/brianmeyer/mollygraph.git#subdirectory=sdk"
from mollygraph_sdk import MollyGraphClient
client = MollyGraphClient(
base_url="http://localhost:7422",
api_key="YOUR_KEY",
)
client.ingest("Sarah joined the ML team at Acme Corp.", source="slack")
result = client.query("What do we know about Sarah?")
entity = client.get_entity("Sarah")
client.close()
HTTP API
Core endpoints:
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Service health and graph capability report |
/stats |
GET | Graph, queue, and vector stats |
/ingest |
POST | Queue text for extraction |
/query |
GET/POST | Combined graph + vector retrieval |
/entity/{name} |
GET | Entity context |
/entity/{name} |
DELETE | Delete one entity |
/entities/prune |
POST | Bulk prune entities |
Operator utilities still exist for quality checks, vector reconciliation, and embedding refresh, but they are not the main onboarding path.
Configuration
Everything is env-driven. See service/.env.example for the full configuration surface.
Key defaults:
MOLLYGRAPH_GRAPH_BACKEND=ladybug
MOLLYGRAPH_VECTOR_BACKEND=ladybug
MOLLYGRAPH_EXTRACTOR_BACKEND=gliner2
MOLLYGRAPH_EMBEDDING_ST_MODEL=Snowflake/snowflake-arctic-embed-s
MOLLYGRAPH_EMBEDDING_VECTOR_DIMENSION=384
Optional local alternate:
MOLLYGRAPH_EMBEDDING_OLLAMA_MODEL=nomic-embed-text
Docs
Current docs:
- docs/ARCHITECTURE.md
- docs/DOCS_MAP.md
- docs/PRODUCTION_TEST_CHECKLIST.md
- service/README.md
- sdk/README.md
- service/BACKLOG.md
Later-phase plan:
License
MIT
Установка MollyGraph
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/brianmeyer/mollygraphFAQ
MollyGraph MCP бесплатный?
Да, MollyGraph MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для MollyGraph?
Нет, MollyGraph работает без API-ключей и переменных окружения.
MollyGraph — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить MollyGraph в Claude Desktop, Claude Code или Cursor?
Открой MollyGraph на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare MollyGraph with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
