Carton MCP
⭐ 1 stars • 🕑 Updated 2026-07-10
📦 Auto-published from the monorepo • CHANGELOG • sancovp/carton-mcp
A Zettelkasten-style knowledge management system that provides both a core library for concept management and an MCP server for agent-driven knowledge operations.
Overview
Carton creates a dual-storage concept management system where ideas are stored as both Neo4j graph nodes and GitHub markdown files. The system auto-discovers relationships from text descriptions, manages missing concepts, and provides sophisticated graph querying capabilities.
This package provides both a core library for direct concept management and an MCP server for agent consumption.
Core Library Features
🏗️ CartOnUtils - Core Business Logic
- Neo4j Graph Operations: Execute read-only Cypher queries on :Wiki namespace
- Concept Network Analysis: Get connected concepts with 1-3 hop relationship depth
- Missing Concept Management: Detect, track, and auto-create missing concepts
- Duplicate Detection: Find similar concepts using textual similarity analysis
- GitHub Integration: Commit concept files and missing_concepts.md to repository
⚙️ ConceptConfig - Configuration Management
- Dual Storage Setup: Configure both GitHub (PAT, repo) and Neo4j (URI, credentials)
- HEAVEN Data Integration: Uses HEAVEN_DATA_DIR for local concept storage
- Environment-based Config: Loads settings from environment variables
📝 Add Concept Tool - Content Creation
- Auto-linking: Discovers concept mentions in descriptions and creates relationships
- Relationship Inference: Creates bidirectional links and inverse relationships
- File Generation: Creates structured markdown files in wiki/concepts/ directory
- Neo4j Integration: Stores concepts as nodes with normalized properties
MCP Server Features
🛠️ 7 MCP Tools
- add_concept: Create concepts with auto-relationship discovery
- query_wiki_graph: Execute read-only Cypher queries on :Wiki namespace
- get_concept_network: Explore concept relationships with depth control (1-3 hops)
- list_missing_concepts: Show concepts referenced but not yet created
- calculate_missing_concepts: Scan all concepts and update missing_concepts.md
- create_missing_concepts: Bulk create missing concepts with AI descriptions
- deduplicate_concepts: Find similar concepts using similarity thresholds
📋 4 MCP Prompts
- add_user_thought: Capture user quotes verbatim with topic attribution
- update_known_concept: Update existing concepts while preserving relationships
- update_user_thought_train_emergently: Track how thoughts evolved into insights
- sync_after_update_known_concept: Create sync concepts for version control
Installation
[Installation instructions pending PyPI publication]
Architecture
Dual Storage Model:
- GitHub: Markdown files in
wiki/concepts/structure with auto-linking - Neo4j: Graph database using
:Wikinamespace with propertiesn(name),d(description),c(canonical),t(timestamp)
Auto-Discovery System:
- Scans concept descriptions for mentions of other concepts
- Creates
relates_torelationships automatically - Tracks missing concepts and generates creation templates
- Maintains bidirectional relationships and inverse inference
Dependencies
- HEAVEN Framework for Neo4j utilities and base tool classes
- Neo4j Python driver for graph database operations
- GitHub integration for version control and wiki generation
- MCP protocol for agent tool exposure
License
MIT License - see LICENSE file for details.
Metadata
Release files for carton-mcp 0.1.83
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| carton_mcp-0.1.83.tar.gz | 386.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| carton_mcp-0.1.83-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 750.9 kB
Release files / carton_mcp-0.1.83.tar.gz
| Download URL | carton_mcp-0.1.83.tar.gz |
|---|---|
| Size | 386.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5db8ec8116d764b1f47975b46af81740cde7b546bf4df92ca7b9e3ef9abedcd3
|
|
BLAKE2b-256 checksum How to use checksums |
8201adc066af796f04caa2a94008950d71bbd5c31293be229c7d9df2524ab1d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / carton_mcp-0.1.83-py3-none-any.whl
| Download URL | carton_mcp-0.1.83-py3-none-any.whl |
|---|---|
| Size | 364.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ccd60ce549ce9c124eb5d1d6f7b9f5c2c31cff6b2d4374cce931b1081df466a
|
|
BLAKE2b-256 checksum How to use checksums |
beaf3ceef0c5bd993ecc4d47215144f36031fb54351bfe605557fe6d133ae770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for carton-mcp 0.1.83
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.