Optimized Memory MCP Server v2

Optimized Memory MCP Server v2

A Python-based server that implements the Model Context Protocol to interface with Claude Desktop as an MCP client, supporting interaction through efficient memory management.

AgentWong

Developer Tools
Visit Server

README

Optimized Memory MCP Server v2

A high-performance Python-based Model Context Protocol (MCP) server implementation optimized for Claude Desktop integration. This server provides efficient memory management and robust infrastructure component tracking capabilities.

[!CAUTION] This project has been archived due to faulty project specifications and AI direction that led to endless looping behavior.

Overview

This MCP server implementation focuses on:

  • Efficient memory management for large-scale infrastructure tracking
  • Comprehensive resource and tool implementations following MCP patterns
  • Full Claude Desktop compatibility
  • SQLite-based persistent storage with connection pooling
  • Robust error handling and resource cleanup

Features

  • MCP Resources

    • Entity management (listing, retrieval, relationships)
    • Provider resource tracking
    • Ansible collection management
    • Version tracking
    • Full-text search capabilities
  • MCP Tools

    • Entity creation and management
    • Observation tracking
    • Provider registration
    • Ansible module integration
    • Infrastructure analysis tools
  • Core Components

    • FastMCP server implementation
    • SQLite database with connection pooling
    • Comprehensive error handling
    • Automatic resource cleanup
    • Extensive logging

Project Structure

.
├── src/
│   ├── resources/          # MCP resource implementations
│   ├── tools/             # MCP tool implementations
│   ├── db/                # Database management
│   ├── utils/             # Utility functions
│   └── server.py          # Main server implementation
├── tests/
│   ├── resources/         # Resource tests
│   ├── tools/             # Tool tests
│   └── integration/       # Integration tests
├── docs/                  # Documentation
├── migrations/            # Database migrations
└── requirements/          # Project dependencies

Requirements

  • Python 3.13.1 or higher
  • SQLite 3.x
  • uvx server

Quick Start

See our Environment Setup Guide for detailed installation instructions.

Key steps:

  1. Clone and setup Python environment
  2. Install dependencies: pip install -r requirements.txt
  3. Configure database: export DATABASE_URL=sqlite:///path/to/db.db
  4. Initialize database: alembic upgrade head
  5. Start server: uvx run python -m src.main

Usage

  1. Start the server:

    uvx run python -m src.main
    
  2. Configure Claude Desktop:

    • Set MCP server URL to http://localhost:8000
    • Enable MCP protocol in Claude settings
  3. Verify connection:

    curl http://localhost:8000/health
    

Development Setup

  1. Install development dependencies:

    pip install -r requirements-dev.txt
    
  2. Set up pre-commit hooks:

    pre-commit install
    
  3. Run tests:

    pytest
    
  4. Check code quality:

    flake8
    mypy .
    

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes following our conventions
  4. Run tests and linting
  5. Submit a pull request

Documentation

License

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

Acknowledgments

  • Claude Desktop team for MCP protocol specifications
  • Contributors to the FastMCP library
  • SQLAlchemy team for database tooling

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
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python