Skip to main content

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.7.1

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 string
  • limit (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 of status, enable, disable, remove, configure
  • frequency_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 documentation
  • agentgenesis://stats - Current corpus statistics
  • agentgenesis://health - Current API health status

Available Prompts

  • search_conversations_workflow - Guided workflow for building and refining searches
  • trigger_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 documentation
  • agentgenesis://stats - Current corpus statistics
  • agentgenesis://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

  1. Verify the MCP server is in your config file
  2. Restart Claude Code / Claude Desktop
  3. 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.

Metadata

Release files for agent-genesis-mcp 1.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-genesis-mcp 1.7.1
File Size Uploaded Provenance
agent_genesis_mcp-1.7.1.tar.gz 16.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-genesis-mcp 1.7.1
File Interpreter ABI Platform
agent_genesis_mcp-1.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.1 kB

Release files / agent_genesis_mcp-1.7.1.tar.gz

Download URL agent_genesis_mcp-1.7.1.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6143b6857fce848e1dd1bab66127fc26e23ad46939bbe368b158b2ca6b47bc03
BLAKE2b-256 checksum
How to use checksums
8955e5651eb599ba080375e8abfab126b403debb2db06983efe44854496b4335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / agent_genesis_mcp-1.7.1-py3-none-any.whl

Download URL agent_genesis_mcp-1.7.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dc9a6a587fdea921c97dcf519fd0b79c0e1fe9996ac691e02c1a08038a5d605
BLAKE2b-256 checksum
How to use checksums
75f26c4766a56b162b2a0380fc95f1cf472b97b3d4aad6bed602d1f0fb99dce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for agent-genesis-mcp 1.7.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agent_genesis_mcp-1.7.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page