MCP server for searching Claude Code conversation history via Agent Genesis
Project description
Agent Genesis MCP Server
MCP server for searching Claude Code conversation history
This package provides an MCP (Model Context Protocol) server that enables Claude Code to search through your conversation history using the Agent Genesis API.
Current package version: 1.3.0
Prerequisites
- Python 3.10+
- Agent Genesis API running (via Docker)
Installation
From PyPI
pip install agent-genesis-mcp
From Source
git clone https://github.com/agentgenesis/agent-genesis.git
cd agent-genesis/mcp-server
pip install -e .
Configuration
Add to your Claude Code configuration:
Linux/macOS: ~/.claude.json
Windows: %USERPROFILE%\.claude.json
{
"mcpServers": {
"agent-genesis": {
"command": "agent-genesis-mcp",
"args": []
}
}
}
Or if installed in a virtual environment:
{
"mcpServers": {
"agent-genesis": {
"command": "/path/to/venv/bin/agent-genesis-mcp",
"args": []
}
}
}
Available Tools
search_conversations
Search through your Claude Code conversation history.
Parameters:
query(str): Search query stringlimit(int, optional): Max results (default: 5, max: 50)project(str, optional): Filter by project name
Example:
search_conversations(query="authentication flow", limit=10, project="my-app")
Returns:
{
"success": true,
"results": [
{
"score": 0.856,
"project": "my-app",
"timestamp": "2025-01-15T10:30:00Z",
"conversation_id": "conv_abc123",
"content_snippet": "Implementing authentication...",
"full_content_length": 1245
}
],
"total_found": 3,
"query": "authentication flow"
}
get_api_stats
Get statistics about the indexed conversation corpus.
Returns:
- Total conversations indexed
- Number of unique projects
- Index health status
check_api_health
Verify that the Agent Genesis API is running and healthy.
manage_scheduler
Control automatic conversation indexing.
Parameters:
action(str): One ofstatus,enable,disable,remove,configurefrequency_minutes(int, optional): Indexing interval (default: 30)
Examples:
# Check status
manage_scheduler(action="status")
# Enable with 1-hour interval
manage_scheduler(action="enable", frequency_minutes=60)
# Disable
manage_scheduler(action="disable")
index_conversations
Manually trigger conversation indexing.
Parameters:
full_reindex(bool): Reindex all conversations (default: False)time_range(str, optional): Time filter - "1h", "24h", "7d", "30d"force(bool): Bypass rate limiting (default: False)
Examples:
# Index new conversations only
index_conversations()
# Full reindex
index_conversations(full_reindex=True, force=True)
# Index last 24 hours
index_conversations(time_range="24h")
Available Resources
config://api-endpoints- API endpoint documentationagentgenesis://stats- Current corpus statisticsagentgenesis://health- Current API health status
Available Prompts
search_conversations_workflow- Guided workflow for building and refining searchestrigger_indexing_workflow- Guided workflow for manual indexing and scheduler operations
API Configuration
By default, the MCP server connects to http://localhost:8080.
To use a different endpoint, set the environment variable:
export AGENT_GENESIS_API_URL=http://your-host:port
Resources
The server provides MCP resources for documentation:
config://api-endpoints- API endpoint documentationagentgenesis://stats- Current corpus statisticsagentgenesis://health- API health status
Troubleshooting
"API Connection Failed"
Ensure the Agent Genesis Docker container is running:
docker-compose ps
curl http://localhost:8080/health
"Timeout" errors
The API might be busy indexing. Try again in a few seconds.
Tool not found in Claude
- Verify the MCP server is in your config file
- Restart Claude Code / Claude Desktop
- Check MCP logs (View → Developer → MCP Logs)
Development
# Clone the repo
git clone https://github.com/agentgenesis/agent-genesis.git
cd agent-genesis/mcp-server
# Install dev dependencies
pip install -e ".[dev]"
# Validate MCP compliance
python3 test_mcp_2025_compliance.py
# Run the interactive MCP smoke test
python3 test_mcp.py
# Format code
black .
ruff check .
License
MIT License - see LICENSE for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_genesis_mcp-1.4.1.tar.gz.
File metadata
- Download URL: agent_genesis_mcp-1.4.1.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56189a0041bfcc4eaa411034d6c1161f1c60b427c3b9d2c0a1866d51eb7a83ab
|
|
| MD5 |
dd4d3f4b33cce3c2f08c42d25fbadbbc
|
|
| BLAKE2b-256 |
99430b06091074d67cb5407e3f8673ff18438332dfe7255477aead2b25861d73
|
Provenance
The following attestation bundles were made for agent_genesis_mcp-1.4.1.tar.gz:
Publisher:
pypi-publish.yml on Platano78/agent-genesis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_genesis_mcp-1.4.1.tar.gz -
Subject digest:
56189a0041bfcc4eaa411034d6c1161f1c60b427c3b9d2c0a1866d51eb7a83ab - Sigstore transparency entry: 1361304221
- Sigstore integration time:
-
Permalink:
Platano78/agent-genesis@66dbdaa348d7476dccb8546528f5c861ac3169a0 -
Branch / Tag:
refs/tags/v1.4.1 - Owner: https://github.com/Platano78
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@66dbdaa348d7476dccb8546528f5c861ac3169a0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agent_genesis_mcp-1.4.1-py3-none-any.whl.
File metadata
- Download URL: agent_genesis_mcp-1.4.1-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c157b47dddb448a45624ea5b5f1f90174c970aa825382f0ad44a98a6e4c48ae9
|
|
| MD5 |
27fb58935386301187f63d447c5815dd
|
|
| BLAKE2b-256 |
a0fc2914b40aea8fe58b0563bb3a4e4e96e842fc236a5896b0af28f863dd0a23
|
Provenance
The following attestation bundles were made for agent_genesis_mcp-1.4.1-py3-none-any.whl:
Publisher:
pypi-publish.yml on Platano78/agent-genesis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_genesis_mcp-1.4.1-py3-none-any.whl -
Subject digest:
c157b47dddb448a45624ea5b5f1f90174c970aa825382f0ad44a98a6e4c48ae9 - Sigstore transparency entry: 1361304285
- Sigstore integration time:
-
Permalink:
Platano78/agent-genesis@66dbdaa348d7476dccb8546528f5c861ac3169a0 -
Branch / Tag:
refs/tags/v1.4.1 - Owner: https://github.com/Platano78
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@66dbdaa348d7476dccb8546528f5c861ac3169a0 -
Trigger Event:
release
-
Statement type: