optimized-memory-mcp-serverv2
This is a personal project to test Claude AI's ability to self-write an MCP Server code for its own use.
Documentation
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 dependenciesRequirements
- 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.main2. Configure Claude Desktop:
3. Verify connection:
curl http://localhost:8000/healthDevelopment Setup
1. Install development dependencies:
pip install -r requirements-dev.txt2. Set up pre-commit hooks:
pre-commit install3. Run tests:
pytest4. 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
- Environment Setup Guide - Installation and configuration
- MCP Usage Guide - Using MCP resources and tools
- API Documentation - API reference
- Configuration Guide - Server configuration
- Development Guide - Contributing guidelines
- Database Schema - Data model reference
- Troubleshooting Guide - Common issues and solutions
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
Frequently asked questions
What is optimized-memory-mcp-serverv2?
optimized-memory-mcp-serverv2 is This is a personal project to test Claude AI's ability to self-write an MCP Server code for its own use.
How do I install optimized-memory-mcp-serverv2?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is optimized-memory-mcp-serverv2 open source?
Yes — it is hosted on GitHub at https://github.com/AgentWong/optimized-memory-mcp-serverv2 and has 1 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP