Lore MCP
Version control for AI coding context - Commit your intent, not just your code.
What is Lore MCP?
Lore MCP captures and preserves the thinking process behind AI-assisted coding. When you work with AI coding assistants like Claude, the conversation context—your intent, assumptions, alternatives considered, and decisions made—is just as valuable as the code itself.
Traditional Version Control:
git commit → "Added authentication module"
Lore MCP:
lore commit → Intent: "Implement JWT authentication with refresh tokens"
Assumptions: ["Redis available for token storage"]
Alternatives: ["Session-based auth", "OAuth2 only"]
Decision: "JWT chosen for stateless scalability"
Features
- Context Commits: Record intent, assumptions, alternatives, and decisions
- Context Search: Search your coding history by intent
- Context Blame: Find the AI conversation that led to any code change
- MCP Integration: Native integration with Claude Code via Model Context Protocol
- Claude Code Hooks: Automatic context capture during AI coding sessions
- Cloud Sync: All data synced to cloud for access anywhere
- Team Sharing: Share context with your team (Pro/Team plans)
Installation
pip install lore-mcp
Or with uvx (no installation required):
uvx lore-mcp lore --help
Quick Start
1. Get Your API Key
- Visit Lore Dashboard
- Sign up / Login with GitHub
- Go to API Keys and create a new key
2. Configure API Key
export LORE_API_KEY=lore_xxxxxxxxxxxxxxxx
Or add to your shell profile (~/.bashrc, ~/.zshrc):
echo 'export LORE_API_KEY=lore_xxxxxxxxxxxxxxxx' >> ~/.zshrc
3. Create Context Commits
# Manual commit with intent
lore commit -m "Implement user authentication with JWT"
# Interactive mode
lore commit -i
4. Search and Blame
# Search by intent
lore search "authentication"
# Blame a file (find context for code)
lore blame src/auth.py
# Check usage
lore usage
MCP Server Integration
Lore provides an MCP server for Claude Code integration.
Setup with Claude Code
Add to your Claude Code settings (~/.claude/settings.json):
{
"mcpServers": {
"lore": {
"command": "lore-mcp",
"env": {
"LORE_API_KEY": "lore_xxxxxxxxxxxxxxxx"
}
}
}
}
Or with uvx:
{
"mcpServers": {
"lore": {
"command": "uvx",
"args": ["lore-mcp"],
"env": {
"LORE_API_KEY": "lore_xxxxxxxxxxxxxxxx"
}
}
}
}
Available MCP Tools
| Tool | Description |
|---|---|
lore_init |
Set up Claude Code hooks |
lore_commit |
Create a context commit |
lore_blame |
Find context for a file |
lore_search |
Search context commits |
lore_status |
Check connection status |
Claude Code Hooks
For automatic context capture, ask Claude to run lore_init (MCP tool), or run manually:
uvx lore-mcp lore init
This will configure hooks in ~/.claude/settings.json automatically.
Or manually add to ~/.claude/settings.json:
{
"hooks": {
"PostToolUse": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "uvx --from lore-mcp python -m lore.hooks.post_tool_use"
}
]
}
],
"Stop": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "uvx --from lore-mcp python -m lore.hooks.on_stop"
}
]
}
]
}
}
CLI Commands
| Command | Description |
|---|---|
lore commit -m "message" |
Create a context commit |
lore search <query> |
Search context commits |
lore blame <file> |
Find context for a file |
lore sync |
Sync local commits to cloud |
lore usage |
Show usage statistics |
lore status |
Show connection status |
lore login |
Open dashboard for API key |
lore version |
Show version |
Pricing
| Plan | Price | Features |
|---|---|---|
| Free | $0 | 100 syncs/month, 50 searches/month |
| Pro | $9/month | Unlimited syncs, Unlimited searches |
| Team | $19/user/month | Everything in Pro + Team sharing |
Dashboard
Manage your context commits, API keys, and team at:
lore-dashboard.jadecon2655.workers.dev
Features:
- View all context commits
- Search and filter commits
- Manage API keys
- Team management (Team plan)
- Usage analytics
License
Apache License 2.0 - see LICENSE for details.
Lore - Because your intent matters as much as your code.
Release files for lore-mcp 1.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lore_mcp-1.0.17.tar.gz | 24.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lore_mcp-1.0.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.1 kB
Release files / lore_mcp-1.0.17.tar.gz
| Download URL | lore_mcp-1.0.17.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffbc4443d2b7778f335c8bc75f7b9c89a26912b2fba0a5f8483565c3e992a2d4
|
|
BLAKE2b-256 checksum How to use checksums |
395e0dd3ca27055caa4656fdfd8818b167cdfb570148e09fb0087681d52db9b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / lore_mcp-1.0.17-py3-none-any.whl
| Download URL | lore_mcp-1.0.17-py3-none-any.whl |
|---|---|
| Size | 33.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43c5499fe2220de3cb420e29bea732629c01227c5e5e9a6bcd0916ef87f7c60c
|
|
BLAKE2b-256 checksum How to use checksums |
a1f3631e4facffc08dd960da7eec68f0d835d2838806702e32318303be208a80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|