Skip to main content

Transform PDF documents into structured knowledge graphs with citation provenance

Project description

MalimGraph (v0.2.0)

███╗   ███╗ █████╗ ██╗     ██╗███╗   ███╗ ██████╗ ██████╗  █████╗ ██████╗ ██╗  ██╗
████╗ ████║██╔══██╗██║     ██║████╗ ████║██╔════╝ ██╔══██╗██╔══██╗██╔══██╗██║  ██║
██╔████╔██║███████║██║     ██║██╔████╔██║██║  ███╗██████╔╝███████║██████╔╝███████║
██║╚██╔╝██║██╔══██║██║     ██║██║╚██╔╝██║██║   ██║██╔══██╗██╔══██║██╔═══╝ ██╔══██║
██║ ╚═╝ ██║██║  ██║███████╗██║██║ ╚═╝ ██║╚██████╔╝██║  ██║██║  ██║██║     ██║  ██║
╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝╚═╝╚═╝     ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝  ╚═╝

PyPI version License: MIT Python 3.10+ MCP Compatible

From documents to interactive knowledge discovery.

MalimGraph is an agentic knowledge graph engine for Claude Code and Claude Desktop. Extract entities, build graphs, and visualize discovery maps — all orchestrated by Claude using its own intelligence. No ANTHROPIC_API_KEY required.


🚀 Claude Code Integration (Native)

MalimGraph v0.2.0 is a first-class plugin for Claude Code. It features auto-discovery and a native orchestration command.

Installation

pip install malimgraph
claude mcp add malimgraph -- malimgraph-plugin

The /kg Command

Initialize a full discovery workflow by typing /kg in your Claude terminal:

  1. Extract: Parses PDF text via read_pdf.
  2. Analyze: Claude identifies entities and relationships with verbatim evidence.
  3. Build: Generates a standard Knowledge Graph (.json, .cypher, .sql).
  4. Visualize: Launches the Premium Visual Discovery Map immediately.

🎨 Visual Discovery Suite

Explore your data through high-fidelity, interactive browser visualizations.

1. Premium Visualizer (vis.js) — Recommended

A robust, self-contained explorer with a pitch-black neon aesthetic.

python skills/graph-visualizer/scripts/visualize_graph.py --input output/knowledge_graph.json
  • Robust Mapping: Reliable handling of id, label, and relationship IDs.
  • Physics-Powered: ForceAtlas2 layout for optimal spatial clarity.
  • Detail Inspector: Click nodes to see verbatim citations and confidence.

2. High-Performance Explorer (Sigma.js)

WebGL-powered rendering for exceptionally large graphs (thousands of nodes).

python skills/graph-visualizer-sigma/scripts/visualize_sigma.py --input output/knowledge_graph.json

🕸️ Skill Triggers

MalimGraph provides specialized agentic skills. Trigger them via natural language:

Trigger Phrase Workflow Target
"knowledge graph" $pdf-to-graph JSON/Cypher/SQL export
"visualise graph" visual-discovery Premium vis.js explorer
"chunk for RAG" $pdf-to-rag pgvector/embeddings
"load into Neo4j" neo4j-local Local database instance

🛠️ Tools & Capabilities

  • read_pdf: PDF → text + rule-extracted metadata.
  • save_knowledge_graph: Stable CID-based graph construction.
  • chunk_document: Token-aware overlapping chunks for RAG.
  • manage_graph_db: Load and query Neo4j or PostgreSQL (Apache AGE).
  • embed_and_store_chunks: Native pgvector integration.

☁️ Cloud & Vercel

Deploy MalimGraph as a serverless MCP endpoint on Vercel: https://mcpserver.malim.my/mcp (Streamable HTTP)


Credits

Built by Malim AI Labs — AI-powered knowledge infrastructure. MIT License © 2026.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

malimgraph-0.2.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

malimgraph-0.2.0-py3-none-any.whl (47.4 kB view details)

Uploaded Python 3

File details

Details for the file malimgraph-0.2.0.tar.gz.

File metadata

  • Download URL: malimgraph-0.2.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for malimgraph-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2a5b2fcaaf3890ee061eace2115f23b91cd8d6c8f31e84bd48cabfcbf26985f5
MD5 af0faa25ba2f7aeeb71859934a88d09c
BLAKE2b-256 60495b51328660790b9f963312a76a3e32b530151a46d89e900a324da7722b56

See more details on using hashes here.

Provenance

The following attestation bundles were made for malimgraph-0.2.0.tar.gz:

Publisher: publish.yml on malim-ai-labs/malim-graph-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file malimgraph-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: malimgraph-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 47.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for malimgraph-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7bb6d2b4a48017b3551651f47034a8debd6e9458bf3e2213142ed7d1dc477f7
MD5 accd987b8a11c42b09b35d3b10f8890d
BLAKE2b-256 dd35fdd94c0868b4553ff7153f8cb651612885efdd4ab9c89ca962f9427da2e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for malimgraph-0.2.0-py3-none-any.whl:

Publisher: publish.yml on malim-ai-labs/malim-graph-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page