by samyama-ai
Rust graph-vector database: OpenCypher (99.9% of evaluated TCK scenarios pass), vector search, graph algorithms, RESP + HTTP. LDBC SNB Interactive and BI complete; 1B edges on one machine.
# Add to your Claude Code skills
git clone https://github.com/samyama-ai/samyama-graphGuides for using mcp servers skills like samyama-graph.
samyama-graph is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by samyama-ai. Rust graph-vector database: OpenCypher (99.9% of evaluated TCK scenarios pass), vector search, graph algorithms, RESP + HTTP. LDBC SNB Interactive and BI complete; 1B edges on one machine. It has 189 GitHub stars.
samyama-graph's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/samyama-ai/samyama-graph" and add it to your Claude Code skills directory (see the Installation section above).
samyama-graph is primarily written in Rust. It is open-source under samyama-ai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh samyama-graph against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Samyama Graph stores, queries, searches and analyses connected data in one system: graph traversal, openCypher-style querying, HNSW vector search, graph algorithms and Redis-compatible access, with no separate vector store to keep in sync.
People use it for GraphRAG, knowledge graphs, AI-agent memory, biomedical and clinical graphs, and fraud, investigation and dependency analysis. The two demos below are the short version of why.
The image is public on GitHub Container Registry and needs no registry account.
latest is the newest release; pin a version such as :1.17.0 for a
reproducible setup.
1 โ Write docker-compose.yml in an empty folder:
services:
samyama-graph:
image: ghcr.io/samyama-ai/samyama-graph:latest
container_name: samyama-graph
restart: unless-stopped
ports:
- "6379:6379" # RESP (Redis protocol)
- "8080:8080" # HTTP API
environment:
# Lets the hosted visualizer (step 4) call this server from your browser.
SAMYAMA_CORS_ORIGINS: https://graph.samyama.cloud
volumes:
- samyama-data:/app/samyama_data
volumes:
samyama-data:
2 โ Start it
docker compose up -d
docker logs -f samyama-graph # Ctrl-C to stop following the log
3 โ Run your first query
curl -X POST http://localhost:8080/api/query \
-H 'content-type: application/json' \
-d '{"query":"CREATE (a:Person {name: \"Alice\"})-[:KNOWS]->(b:Person {name: \"Bob\"}) RETURN a.name, b.name","graph":"default"}'
{"columns":["a.name","b.name"],"edges":[],"nodes":[],"records":[["Alice","Bob"]]}
Runtime values go in params, never in the query text โ they are bound, so a
value is never re-read as Cypher:
curl -X POST http://localhost:8080/api/query \
-H 'content-type: application/json' \
-d '{"query":"MATCH (p:Person) WHERE p.name = $name RETURN p.name","params":{"name":"Alice"}}'
4 โ Explore it visually (optional). Open https://graph.samyama.cloud/,
click Home, enter http://localhost:8080 and Connect. Without the
SAMYAMA_CORS_ORIGINS line above the browser refuses the call โ deliberately,
because /api/query runs arbitrary Cypher including DELETE
(#1328).
5 โ Stop or reset. docker compose down stops it; docker compose down -v
also deletes the graph data in the volume.
The server needs no credential by default. For a bearer token, TLS or auto-embedding, see docs/DATA-HANDLING.md.
zstd-sys generates its bindings with bindgen, which needs libclang; without
it the build fails part-way with a misleading 'stddef.h' file not found.
# Debian / Ubuntu
sudo apt-get install -y build-essential cmake pkg-config libssl-dev clang libclang-dev
# Fedora / RHEL
sudo dnf install -y gcc gcc-c++ cmake pkgconf-pkg-config openssl-devel clang clang-devel
# macOS โ the Xcode Command Line Tools already provide clang
xcode-select --install
Then, with a stable Rust toolchain from rustup:
git clone https://github.com/samyama-ai/samyama-graph && cd samyama-graph
cargo build --release
./target/release/samyama # RESP on :6379, HTTP on :8080
# Connect with any Redis client
redis-cli -p 6379
GRAPH.QUERY mydb "CREATE (a:Person {name: 'Alice'})-[:KNOWS]->(b:Person {name: 'Bob'})"
GRAPH.QUERY mydb "MATCH (a)-[:KNOWS]->(b) RETURN a.name, b.name"
| Language | Install | Connect |
|---|---|---|
| Python | pip install samyama |
SamyamaClient.connect("http://localhost:8080"), or SamyamaClient.embedded() to run the engine in-process |
| TypeScript | npm install samyama-sdk |
SamyamaClient.connectHttp("http://localhost:8080") (ESM, Node 18+) |
| Rust | samyama-sdk = { git = "https://github.com/samyama-ai/samyama-graph", tag = "v1.17.0" } โ samyama-sdk is not on crates.io yet |
RemoteClient over HTTP, or EmbeddedClient::new() in-process |
Any Redis client also works over RESP on port 6379. Details: Python ยท TypeScript ยท Rust.
We loaded the entire PubMed corpus plus ClinicalTrials.gov, Reactome pathways and DrugBank into one graph โ 74M nodes, 1B edges on a single machine โ then asked "what drugs are most tested in cancer clinical trials?"
MATCH (m:MeSHTerm)<-[:ANNOTATED_WITH]-(a:Article)
-[:REFERENCED_IN]->(t:ClinicalTrial)-[:TESTS]->(i:Intervention)
WHERE m.name = 'Neoplasms'
RETURN i.name, count(DISTINCT t) AS trials
ORDER BY trials DESC LIMIT 5
| Drug | Trials |
|---|---|
| Placebo | 521 |
| Pembrolizumab | 137 |
| Carboplatin | 106 |
| Paclitaxel | 106 |
| Cyclophosphamide | 98 |
10.3 seconds. One query. Four databases. No ETL between the four sources โ they are joined at query time on shared identifiers.
That is query XK02: 10,250.2 ms in
verified-results.csv,
measured 2026-04-02 on one r6a.8xlarge and not re-measured since. 96 of the 100
queries in that suite return real data. Per-row provenance and caveats are in
docs/BENCHMARKS.md.
| ID | Query | Time | First row (CSV) |
|---|---|---|---|
| XK02 | Cancer โ Trial interventions | 10.3s | Placebo (521 trials) |
| XK07 | Cancer trial sites by country | 4.2s | United States (4,062) |
| XK08 | NCI-funded โ Trial interventions | 20.5s | Placebo (933) |
case_studies/ downloads a public knowledge graph, imports it,
runs showcase Cypher and renders the session as a narrated GIF. Every showcase
query is gated to return real rows
(Definition of Done).
cargo build --release && pip install rich requests
cd case_studies/cricket && ./run.sh # fetch snapshot โ import โ validate โ demo
Cricket KG โ 36,619 nodes, 1,392,017 edges, live graph simulation
Click for the full demo (1:56).
Ten more ship the same way โ drug interactions, pathways, vector search over DBMS research, IMDB, surveillance, health determinants, health systems, legal judgments, bank model risk and football. Browse the catalogue โ
Cypher โ MATCH, CREATE, MERGE, aggregations, path finding, 30+ functions. 99.9% of the openCypher TCK's evaluated scenarios pass (3,845 of 3,847, at 98.7% coverage of the 3,897-scenario corpus, measured 2026-09-15) โ docs/CYPHER-COMPATIBILITY.md.
MATCH p = shortestPath((a:Person)-[:KNOWS*1..3]->(b:Person))
WHERE a.name = 'Alice'
RETURN b.name, length(p)
Vector search โ HNSW indexing for semantic search and GraphRAG, in the same
query language as the traversal. quantization: 'fp16' halves the index's
memory.
// `dimensions` is your embeddings' width (384 for a typical sentence model);
// the query vector must have the same width. 3 keeps the example short.
CREATE VECTOR INDEX paper_idx FOR (p:Paper) ON (p.embedding)
OPTIONS {dimensions: 3, similarity: 'cosine'}
CALL db.index.vector.queryNodes('Paper', 'embedding', [0.1, 0.2, 0.3], 10)
YIELD node, score
Graph algorithms โ PageRank, WCC, SCC, BFS, Dijkstra, LCC, CDLP, triangle count. PageRank, LCC, CDLP and triangle counting are Rayon-parallel and scale with cores; WCC, betweenness and closeness run on one thread.
CALL pagerank('Person', 'KNOWS') YIELD node, score
RETURN node.name, score ORDER BY score DESC LIMIT 10
Natural language and AI agents โ NLQ "Who are Alice's friends of friends that work at Google?" translates English to Cypher through an LLM. For agents,
MCP servers are generated from your graph schema: pip install samyama[mcp],
then samyama-mcp-serve --demo cricket.
Operational basics โ BEGIN / COMMIT / ROLLBACK over RESP and HTTP with
a published isolation table (docs/ACID-GUARANTEES.md);
any read query out as Arrow or Parquet via POST /api/query/export
(docs/BI-CONNECTIVITY.md); Prometheus metrics at
/metrics with a Grafana dashboard; GPU acceleratio