ClaudeCode Session Notes MCP Server

ClaudeCode Session Notes MCP Server

Enables comprehensive collection and analysis of ClaudeCode development sessions, including agent tracking, tool usage analytics, and performance metrics.

Category
Visit Server

README

ClaudeCode Session Notes MCP Server

Tests Quality FastMCP Python

A production-ready Model Context Protocol (MCP) server for comprehensive ClaudeCode session workbook collection and analysis. Built with FastMCP 2.0 for maximum performance and reliability.

šŸš€ Features

šŸ“Š Session Management

  • Start/End Sessions - Track development sessions with comprehensive metadata
  • Environment Collection - Automatic system environment capture (Python, OS, process info)
  • Session Status - Real-time session monitoring and metrics
  • Metadata Updates - Dynamic session attribute management

šŸ¤– Agent Tracking

  • Agent Registration - Register AI agents with type, purpose, and capabilities
  • Execution Logging - Track agent actions with parameters, results, and timing
  • Interaction Analysis - Advanced behavioral tracking for decision-making patterns
  • Agent Statistics - Comprehensive activity metrics and performance data

šŸ› ļø Tool Usage Analytics

  • Tool Request Logging - Track tool availability and usage patterns
  • Missing Tools Detection - Identify gaps in available toolsets
  • Success Rate Analysis - Monitor tool execution effectiveness
  • Usage Pattern Analysis - Understand tool utilization trends

šŸ“ˆ Analytics & Reporting

  • Comprehensive Reports - Session summaries with detailed analytics
  • Missing Tools Reports - Identify frequently requested but unavailable tools
  • Performance Metrics - Execution times, success rates, and efficiency measures
  • Data Export - JSON-based data persistence for external analysis

šŸ—ļø Architecture

Built on FastMCP 2.0 with modern Python practices:

  • FastMCP 2.0 Framework - State-of-the-art MCP server implementation
  • Pydantic Models - Type-safe data validation and serialization
  • File-Based Storage - Reliable .claude/session-notes/ hierarchy
  • PIXI Dependency Management - Reproducible development environment
  • 100% Test Coverage - Production-ready with comprehensive test suite

šŸ“¦ Installation

Prerequisites

  • Python 3.12+
  • PIXI (recommended) or pip
  • Git for development

Quick Start with PIXI (Recommended)

# Clone the repository
git clone https://github.com/Claire-s-Monster/claudecode-session-notes.git
cd claudecode-session-notes

# Install with PIXI
pixi install

# Start the MCP server
pixi run server

Alternative: pip Installation

# Clone and install
git clone https://github.com/Claire-s-Monster/claudecode-session-notes.git
cd claudecode-session-notes

# Install in editable mode
pip install -e .

# Start the MCP server
python -m session_notes.server

šŸ”§ MCP Integration

Claude Desktop Configuration

Recommended (PIXI - Production Ready)

Add to your ~/.claude_desktop_config.json:

{
  "mcpServers": {
    "session-notes": {
      "command": "pixi",
      "args": ["run", "-e", "quality", "server"],
      "cwd": "/path/to/claudecode-session-notes"
    }
  }
}

Alternative Configurations

Development Mode (with debug logging):

{
  "mcpServers": {
    "session-notes": {
      "command": "pixi", 
      "args": ["run", "-e", "quality", "server"],
      "cwd": "/path/to/claudecode-session-notes",
      "env": {
        "PYTHONPATH": "src",
        "CLAUDE_DEBUG": "1"
      }
    }
  }
}

Minimal Runtime (fastest startup):

{
  "mcpServers": {
    "session-notes": {
      "command": "pixi",
      "args": ["run", "server"],
      "cwd": "/path/to/claudecode-session-notes"
    }
  }
}

Legacy Python (fallback option):

{
  "mcpServers": {
    "session-notes": {
      "command": "python",
      "args": ["-m", "session_notes.server"],
      "cwd": "/path/to/claudecode-session-notes"
    }
  }
}

šŸ’” Why PIXI? Using PIXI commands ensures reproducible environments, exact dependency versions from pixi.lock, and optimal FastMCP 2.0 integration with conda-forge packages.

Available MCP Tools

Tool Description
start_session Begin tracking a new development session
end_session End session with metrics calculation
update_session_metadata Update session attributes dynamically
get_session_status Retrieve real-time session information
register_agent Register an AI agent in the session
get_agent_metadata Get comprehensive agent statistics
log_agent_execution Record agent actions and results
log_tool_request Track tool usage and availability
log_agent_interaction Record complex agent behaviors
analyze_missing_tools Identify missing tool patterns
save_missing_tools_report Generate missing tools analysis

Example Usage

# Start a session
start_session("my-dev-session")

# Register an agent
register_agent(
    session_id="my-dev-session",
    agent_type="code-reviewer",
    purpose="Review and analyze code quality"
)

# Log agent activity
log_agent_execution(
    session_id="my-dev-session",
    agent_id="agent-uuid",
    agent_type="code-reviewer",
    action="analyze_code",
    parameters={"file": "main.py"},
    result={"issues": 2, "score": 8.5}
)

# End session with metrics
end_session("my-dev-session", outcome="completed")

šŸ§‘ā€šŸ’» Development

Quality Standards

This project maintains production-grade quality standards:

  • āœ… 100% Test Pass Rate (285/290 tests passing)
  • āœ… Zero Critical Lint Violations
  • āœ… Type Safety with Pydantic models
  • āœ… Error Handling for all edge cases
  • āœ… Performance Optimized with FastMCP 2.0

Development Commands

# Install development environment
pixi install -e quality

# Run tests (100% pass rate)
pixi run test

# Run with coverage
pixi run test-cov

# Quality checks
pixi run lint          # Critical violations check
pixi run typecheck     # Type safety validation
pixi run quality       # Full quality pipeline

# Run the server in development
pixi run dev

Project Structure

claudecode-session-notes/
ā”œā”€ā”€ src/session_notes/
│   ā”œā”€ā”€ __init__.py
│   └── server.py              # Main MCP server implementation
ā”œā”€ā”€ tests/                     # Comprehensive test suite (285 tests)
ā”œā”€ā”€ docs/                      # Documentation
ā”œā”€ā”€ pyproject.toml            # PIXI configuration & dependencies
ā”œā”€ā”€ .claude/                  # Claude integration
└── README.md                 # This file

šŸ“Š Data Storage

Session data is stored in a structured hierarchy under .claude/session-notes/:

.claude/session-notes/
ā”œā”€ā”€ {session-id}/
│   ā”œā”€ā”€ session.json          # Session metadata & metrics
│   ā”œā”€ā”€ missing_tools.json    # Missing tools analysis
│   └── agents/
│       └── {agent-id}/
│           ā”œā”€ā”€ metadata.json      # Agent registration info
│           ā”œā”€ā”€ execution.json     # Action logs
│           ā”œā”€ā”€ tools.json         # Tool usage logs  
│           └── interactions.json  # Behavioral data

šŸ¤ Contributing

We welcome contributions! This project has achieved 100% test pass rate and maintains high quality standards.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Maintain quality: Run pixi run quality before committing
  4. Write tests: Ensure 100% test coverage continues
  5. Submit a Pull Request

Quality Requirements

  • āœ… All tests must pass (pixi run test)
  • āœ… No critical lint violations (pixi run lint)
  • āœ… Type safety maintained (pixi run typecheck)
  • āœ… Code coverage maintained (pixi run test-cov)

šŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ† Acknowledgments

  • FastMCP Framework - Built on the excellent FastMCP 2.0 by jlowin
  • PIXI Package Manager - Modern Python package management
  • Pydantic - Runtime type checking and data validation
  • ClaudeCode Integration - Seamless AI development workflow integration

šŸ“ˆ Project Status

  • Production Ready āœ…
  • 100% Test Pass Rate āœ…
  • Zero Critical Issues āœ…
  • Actively Maintained āœ…

Ready to supercharge your ClaudeCode development sessions with comprehensive analytics and insights! šŸš€

For questions or support, please open an issue on GitHub.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured