A git-tracked, JSON-file CRM built for AI agents — CLI, local web UI, and a first-party MCP server
pip install jsoncrm==1.0.0 Copy PIP instructions
A CRM system built on top of JSON. That's right. You may be wondering why? And the answer is: why not? If this doesn't immediately tickle your hypothalamus here is the longer intro ↓↓↓
CRMs are valuable because they combine two things most companies fail to systematize: a structured database of customer relationships and a process engine that makes sure people actually do what they said they would do. Contacts, companies, deals, and activities form a living timeline of every interaction, while workflows make sure nothing quietly dies in a corner. The real power of a CRM is not the UI that guides people through a process, or the data contained in its database. It is the enforcement of consistent behavior at scale. In other words, it is the system that politely refuses to let you forget your leads.
Historically, tools like Salesforce and HubSpot wrapped this idea in large, heavy applications. But of course spreadsheets have always been here, and proved you could get surprisingly far with something much simpler. Rows become records, tabs become pipeline stages, and humans drag deals around and call it a process. It works, until it very much does not. No enforcement, no structure, no automation. Just optimism and increasingly questionable data. One lesson is: the CRM is not the interface. It is the combination of state and process. The interface is just the surface.
JSONCRM takes this one step further by making the state itself the interface. Instead of hiding data inside an application, everything lives as structured JSON files. Contacts, deals, pipelines. You can open them, edit them, diff them, and roll them back. Git handles history and collaboration. Code handles the process, enforcing stage transitions, next actions, and updates. No mystery, no black box. Just files as the source of truth and tools making sure things happen the way they should.
Now, if you are a human reading this, then you may think: well, we already have databases. And it's true! We have databases and they are great. But as databases become more complex and rich they become harder to manipulate, and then you need UIs and so on and we are back to the same place. As a human you may be very good using CRM user interfaces. But guess who's not that good? That's right, AI agents.
The real shift is that JSONCRM is native to AI agents. JSON is exactly the kind of structure language models can read and write without friction. Instead of forcing an agent to click through a UI, you give it the actual state of the business. It can reason over deals, update records, draft follow ups, and trigger actions through tools. Humans and agents now operate on the same substrate: inspectable files, auditable changes, and explicit workflows. The result is a CRM that is not just simpler or more flexible, but fundamentally different. A git backed, agent native system where customer data, process, and automation are all transparent, programmable, and shared between humans and AI.
On top of that, extensions become trivial instead of a multi month integration project. Because everything is just files and tools, you can plug in new capabilities as simple services that read and write JSON. An MCP server can watch for new leads and enrich them with data from external sources. Another tool can sync activity with email, trigger campaigns, or update product usage signals. Want to score deals, enrich contacts, or run outbound sequences? Add a tool that reads the files, writes updates, and you are done. No SDK hell, no brittle UI automation, no fighting someone else's data model. Just composable building blocks operating on shared state. The result is a system where adding new capabilities can be done with a tiny script, not negotiating with a platform.
pip install jsoncrm # or with web server support pip install "jsoncrm[web]" # or with MCP server support pip install "jsoncrm[mcp]" For JavaScript tests (optional):
npm install Quick Start # Initialize a CRM directory cd my-crm # Create a .crm.json config (or use defaults) # Edit leads.json, prospects.json, customers.json # View stats jsoncrm stats # Search for a lead jsoncrm search "Alice" # Start the web UI jsoncrm serve # open http://127.0.0.1:7341 Data Model JSONCRM stores everything as plain JSON arrays of objects. Each record is a flat object with arbitrary fields. The pipeline is defined by .crm.json:
{ "pipeline": { "stages": [ {"name": "leads", "file": "leads.json"}, {"name": "prospects", "file": "prospects.json"}, {"name": "customers", "file": "customers.json"} ], "transitions": { "leads": ["prospects"], "prospects": ["customers"] } }, "identity": { "primary": "linkedin_url", "fallback": ["id"] }, "scores": { "order": ["⭐", "⭐⭐", "⭐⭐⭐", "⭐⭐⭐⭐", "⭐⭐⭐⭐⭐"], "disqualified": "❌" }, "blocklist": { "file": "competitors.json", "match_fields": ["company", "name"] } } A typical lead looks like:
{ "name": "Alice Testerson", "position": "Head of Computational Chemistry", "company": "TestPharma Inc", "linkedin_url": "https://www.linkedin.com/in/alice-testerson/", "email": "alice@testpharma.com", "score": "⭐⭐⭐⭐", "connected": false, "contacted_at": null, "source": "manual", "added": "2026-01-01", "notes": "Met at conference" } CLI Commands Search & Inspect jsoncrm search — Search across all pipeline stages jsoncrm search --company — Search companies only jsoncrm search --competitor — Also search competitor watchlist jsoncrm stats — Pipeline statistics jsoncrm list leads — List records in a stage (with --score, --company, --query, --limit) jsoncrm recent — Most recently added records jsoncrm top -n 5 --min ⭐⭐⭐ — Top scored leads jsoncrm dump_emails --out emails.txt — Dump all pipeline emails, comma separated CRUD jsoncrm add --database_file leads.json --item_json '{...}' jsoncrm update --database_file leads.json --item_json '{...}' jsoncrm delete --database_file leads.json --item_json '{...}' jsoncrm find --database_file leads.json --item_json '{"company":"Acme"}' Pipeline jsoncrm promote --lead — Move lead → prospect jsoncrm promote --prospect — Move prospect → next configured stage (uses identity.primary; override with --identity-field) jsoncrm demote --prospect — Move prospect → lead jsoncrm demote --customer — Move customer → prospect (uses identity.primary; override with --identity-field) Write Previews add, update, delete, promote, and demote write immediately by default. Use --dry-run to run the same validation and inspect the prospective record without writing CRM or output files. Use --apply when you want to make the write explicit; the two flags are mutually exclusive.
jsoncrm update --database_file leads.json --item_json '{"linkedin_url":"https://example.com/alice","company":"NewCo"}' --dry-run jsoncrm update --database_file leads.json --item_json '{"linkedin_url":"https://example.com/alice","company":"NewCo"}' --apply Dry-run JSON output includes dry_run: true and the prospective record; stage moves also include from and to. The same boolean arguments are available as dry_run and apply through MCP.
All commands support --config path/to/.crm.json for custom configs. Place this global option before the command, for example jsoncrm --config /path/to/.crm.json stats.
Install the MCP extra and start the server from a CRM directory:
pip install "jsoncrm[mcp]" jsoncrm mcp Every canonical CLI command except the long-running serve and mcp commands is exposed as an MCP tool; aliases such as ls are not duplicated. The tools use the same CLI implementation, and integration tests enforce command coverage, argument schemas, defaults, results, errors, and file effects.
For Claude Desktop, add this to claude_desktop_config.json with an absolute config path:
{ "mcpServers": { "jsoncrm": { "command": "jsoncrm", "args": ["--config", "/absolute/path/to/.crm.json", "mcp"] } } } For Claude Code:
claude mcp add --transport stdio jsoncrm -- jsoncrm --config /absolute/path/to/.crm.json mcp The item_json arguments accept either the CLI's JSON-encoded string or a native MCP object. JSON list results are returned under result; output from legacy text-only commands is returned under output.
jsoncrm serve launches a local spreadsheet-like UI:
jsoncrm serve --github-token $GITHUB_TOKEN --repo pauling-ai/pauling-marketing The "Open PR" button in the UI creates a branch, commits all pipeline files, and opens a pull request on GitHub. Changes are reviewed and merged through your normal git workflow.
1. Agent reads leads.json 2. Agent scores new leads using external data 3. Agent writes updates via `jsoncrm update` or direct file edit 4. Human reviews via git diff or GitHub PR 5. Agent promotes qualified leads via `jsoncrm promote` Version Control Because everything is JSON, git becomes the CRM's audit log:
git diff leads.json # See what changed git log -p leads.json # Full history git revert HEAD -- leads.json # Roll back The server writes to disk immediately, so local edits are always in sync with the filesystem. For upstream changes, use the GitHub PR flow or push directly.
Git history does not protect against damage to .git itself. Create an independent ZIP snapshot with:
jsoncrm backup # Default: ~/.jsoncrm/backups/ - .zip jsoncrm backup --output /path/to/recovery/backup.zip Backups include the active config file, configured pipeline files, blocklist, and pending update file when present. Missing configured files are listed in the result and in backup-manifest.json inside the archive. Writes are atomic, existing backups are never overwritten, and destinations inside the CRM's Git repository are rejected.
To recover manually, extract the ZIP into a new directory and inspect or copy back the JSON files:
unzip /path/to/backup.zip -d /path/to/recovered-crm Configuration .crm.json in the working directory drives all behavior:
Marketing and investor CRMs can coexist with different .crm.json configs.
# Python tests pytest tests/ # JavaScript tests npm test # Install in editable mode with all development capabilities pip install -e ".[dev,web,mcp]" License This project is licensed under the GNU Affero General Public License v3.0 only.
Commercial licensing is available for organizations that want to use this software without the obligations of the AGPL. Contact: info@pauling.ai
crm json git mcp ai-agents llm cli pipeline sales open-source
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




