
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server built with FastAPI that lets AI models store and retrieve code memories, search algorithms, manage Qdrant collections, and link memories into a Neo4j knowledge graph.
Coder DB MCP memory server is cataloged as an MCP server attributed to angrysky56. An MCP server built with FastAPI that lets AI models store and retrieve code memories, search algorithms, manage Qdrant collections, and link memories into a Neo4j knowledge graph. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Coder DB MCP memory server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It uses Qdrant for vector memory, SQLite for algorithm storage and versioning, and Neo4j as a knowledge graph.
It uses a configured default FastEmbed model, for example sentence-transformers/all-MiniLM-L6-v2, and collections can specify other supported models.
README.md · e0ff6872b66d · 采集于 2026-11-13 10:22:33 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A structured memory system for AI assistants to enhance coding capabilities using database integration utilizing Claude Desktop and MCP Servers.
This system leverages multiple database types to create a comprehensive memory system for coding assistance:
For storing and retrieving code snippets, patterns, and solutions by semantic meaning.
What to store:
Enhanced Metadata:
Example Usage:
# Storing a code pattern
information = {
"type": "code_pattern",
"language": "python",
"name": "Context Manager Pattern",
"code": "class MyContextManager:\n def __enter__(self):\n # Setup code\n return self\n def __exit__(self, exc_type, exc_val, exc_tb):\n # Cleanup code\n pass",
"explanation": "Context managers provide a clean way to manage resources like file handles.",
"tags": ["python", "resource management", "context manager"],
"complexity": "intermediate",
"quality_metrics": {
"cyclomatic_complexity": 2,
"documentation_coverage": 0.85
},
"user_rating": 4.5
}
# Store in Qdrant
For maintaining a structured catalog of algorithms with proper versioning.
Database Schema:
algorithms: Basic algorithm information (name, description)algorithm_versions: Different versions of algorithm implementationsalgorithm_categories: Categories like Sorting, Searching, Graph, etc.performance_metrics: Performance data for different implementationsimprovements: Tracked improvements between versionschange_logs: Detailed logs of changes with rationale and contextVersion Diffing:
Example Query:
-- Find all sorting algorithms with performance metrics
SELECT a.name, a.description, v.version_number, p.time_complexity, p.space_complexity
FROM algorithms a
JOIN algorithm_versions v ON a.id = v.algorithm_id
JOIN performance_metrics p ON v.id = p.version_id
JOIN algorithm_category_mapping m ON a.id = m.algorithm_id
JOIN algorithm_categories c ON m.category_id = c.id
WHERE c.name = 'Sorting'
ORDER BY a.name, v.version_number DESC;
-- Get change logs for a specific algorithm
SELECT v.version_number, c.change_description, c.rationale, c.created_at
FROM algorithm_versions v
JOIN change_logs c ON v.id = c.version_id
WHERE v.algorithm_id = 5
ORDER BY v.version_number;
For representing complex relationships between coding concepts, patterns, and solutions.
Advanced Ontology:
Rich Relation Types:
Graph Analytics:
When facing a new coding problem:
Context Gathering:
Memory Querying:
qdrant-find-memories("efficient way to traverse binary tree")SELECT * FROM algorithms WHERE name LIKE '%tree%'Solution Application:
Feedback Loop:
When discovering a useful pattern:
Automated Documentation:
Quality Assessment:
Metadata Enrichment:
Knowledge Integration:
When starting a new project:
Template Selection:
Automated Setup:
Best Practices Integration:
Access Controls:
Backup & Recovery:
Sensitive Information:
Usage Tracking:
Performance Metrics:
Store your first code memory:
qdrant-store-memory(json.dumps({
"type": "code_pattern",
"name": "Python decorator pattern",
"code": "def my_decorator(func):\n def wrapper(*args, **kwargs):\n # Do something before\n result = func(*args, **kwargs)\n # Do something after\n return result\n return wrapper",
"explanation": "Decorators provide a way to modify functions without changing their code.",
"tags": ["python", "decorator", "metaprogramming"],
"complexity": "intermediate"
}))
Retrieve it later:
qdrant-find-memories("python decorator pattern")
The MCP (Model Context Protocol) server provides a standardized interface for AI models to interact with the Coder DB memory system. It is built using FastAPI and Uvicorn.
mcp_server/)The mcp_server directory contains the FastAPI application:
mcp_server/
├── core/ # Core logic, Pydantic models, configuration
│ ├── __init__.py
│ ├── config.py # Application settings
│ └── models.py # Pydantic data models
├── database/ # Database connectors and SQLAlchemy models
│ ├── __init__.py
│ ├── qdrant_connector.py # Logic for Qdrant vector database
│ ├── sqlite_connector.py # Logic for SQLite relational database
│ └── sql_models.py # SQLAlchemy ORM models for SQLite
├── routers/ # FastAPI routers for different API endpoints
│ ├── __init__.py
│ ├── algorithm.py # Endpoints for /algorithm
│ ├── health.py # Endpoint for /health
│ └── memory.py # Endpoints for /memory
├── tests/ # Unit and integration tests
│ ├── __init__.py
│ ├── test_algorithm_api.py
│ ├── test_health.py
│ └── test_memory_api.py
├── main.py # Main FastAPI application setup and startup
└── pyproject.toml # Project dependencies and metadata (using Poetry)
(Note: requirements.txt is part of the old setup and can be removed if pyproject.toml and Poetry are used exclusively.)
This project uses Poetry for dependency management and packaging.
Install Poetry (if you haven't already): Follow the instructions on the Poetry website.
Install Dependencies:
Navigate to the directory containing pyproject.toml (this should be the mcp_server directory if you created it as a self-contained Poetry project, or the root of this repository if mcp_server is a sub-package of a larger Poetry project) and run:
poetry install --with dev # --with dev includes testing dependencies
This will create a virtual environment (if one doesn't exist for this project) and install all dependencies.
Environment Configuration (Optional but Recommended):
The application uses settings defined in mcp_server/core/config.py. You can override these by creating a .env file in the same directory where you run uvicorn (typically the root of the repository or mcp_server/ if running from there).
Example .env file content:
# mcp_server/.env or project_root/.env
# QDRANT_HOST="your_qdrant_host_if_not_localhost" # Overrides default 'localhost'
# QDRANT_PORT=6334 # Overrides default 6333
# QDRANT_API_KEY="your_qdrant_api_key_if_any"
# SQLITE_DATABASE_URL="sqlite+aiosqlite:///./custom_mcp_data.db" # Overrides default ./mcp_server.db
# SQLITE_ECHO_LOG=True # To see SQLAlchemy logs
Refer to mcp_server/core/config.py for all available settings.
Run the Development Server:
Ensure your Poetry environment is active (e.g., by running poetry shell in the directory with pyproject.toml) or prepend commands with poetry run.
From the root of the repository (the directory containing the mcp_server folder):
poetry run uvicorn mcp_server.main:app --reload --host 0.0.0.0 --port 8000
The server will be available at http://127.0.0.1:8000.
http://127.0.0.1:8000/docshttp://127.0.0.1:8000/redocWith development dependencies installed (poetry install --with dev):
From the root of the repository:
poetry run pytest
This will discover and run tests located in the mcp_server/tests/ directory.
The server currently exposes the following main API endpoints. For detailed request/response models and to try them out, please visit the /docs URL when the server is running.
System Endpoints (Tag: System)
GET /: Provides basic information about the server.GET /health: A simple health check endpoint. Returns {"status": "OK"}.Memory Management Endpoints (Tag: Memory Management, Prefix: /memory)
POST /memory/store: Stores a new memory item (e.g., code pattern, solution, documentation snippet) into the Qdrant vector database.
StoreMemoryRequest (JSON object containing a MemoryItem).StoreMemoryResponse (JSON object with the ID of the stored item and status).POST /memory/find: Searches for memory items in Qdrant based on a natural language query and/or filters.
FindMemoryRequest (JSON object with query string, limit, and optional filters like language, tags, complexity).FindMemoryResponse (JSON object containing a list of matching MemoryItems and a count).Algorithm Management Endpoints (Tag: Algorithm Management, Prefix: /algorithm)
POST /algorithm/store: Stores a new algorithm or a new version of an existing algorithm in the SQLite database.
StoreAlgorithmRequest (JSON object containing Algorithm data, including its versions).StoreAlgorithmResponse (JSON object with the ID of the stored/updated algorithm and status).POST /algorithm/find: Searches for algorithms in the SQLite database by name or category.
FindAlgorithmRequest (JSON object with optional name and category fields).FindAlgorithmResponse (JSON object containing a list of matching Algorithms and a count).Collection Management Endpoints (Tag: Collection Management, Prefix: /coder/collections)
POST /coder/collections/create: Creates a new Qdrant collection.
CreateCollectionRequest (JSON object with collection_name and optional model_name). If model_name is omitted, the default embedding model specified in server configuration is used. The model's name and vector size are stored in the collection's metadata.GET /coder/collections/{collection_name}/info: Retrieves information about a specific Qdrant collection, including its configuration and associated embedding model metadata.
collection_name.The server now uses actual text embeddings (via the FastEmbed library) for storing and searching memories in Qdrant.
sentence-transformers/all-MiniLM-L6-v2). This model's dimension is used as the default vector size for new collections if no specific model is indicated./coder/collections/create endpoint, you can specify a different (supported) FastEmbed model. The chosen model's name and its specific vector dimension will be associated with the collection and stored in its metadata. This dimension will be used when configuring the vector parameters for that collection in Qdrant.store_memory operation, if targeting a non-existent collection, will attempt to create it using create_coder_collection. If no model is specified for this implicit creation, the default model and its settings will be applied to the new collection.memory_item.explanation and/or memory_item.code) is then embedded using the determined provider before being sent to Qdrant.EnhancedEmbeddingModelManager has a predefined list of supported FastEmbed models and their properties. This list can be expanded.The server now includes an initial integration with Neo4j as a knowledge graph database. This is the third core database type, enabling the representation and querying of complex relationships between coding concepts, stored memory items, and algorithms.
Purpose:
Setup Requirements:
IF NOT EXISTS clause support in constraints).mcp_server/core/config.py or via environment variables (e.g., NEO4J_URL, NEO4J_USER, NEO4J_PASSWORD, NEO4J_DATABASE_NAME). The defaults are bolt://localhost:7687, user neo4j, password password, database neo4j.neo4j Python driver (e.g., neo4j>=5.17.0) is now a project dependency (see pyproject.toml).Initialization:
KGConcept.name, KGMemory.memory_id, KGAlgorithm.algorithm_id). These operations are idempotent.Current Knowledge Graph Schema Nodes (Initial Definition):
:KGConcept: Represents abstract concepts.
name (string, unique), type (string, e.g., 'language', 'framework', 'tag', 'methodology', 'algorithm_category', 'memory_type'), description (optional string), created_at (datetime).:KGMemory: Represents a MemoryItem that has been stored in Qdrant, linking it into the graph.
memory_id (string, unique, typically the Qdrant point ID or internal UUID), name (string, name of the memory item), type (string, type of the memory item like 'code_pattern'), created_at (datetime).:KGAlgorithm: Represents an Algorithm stored in SQLite, linking it into the graph.
algorithm_id (integer, unique, from SQLite primary key), name (string), category (string), created_at (datetime).Relationships (Initial Definition):
[:KG_RELATED_TO {type: "SPECIFIC_REL_TYPE"}]. The type property on the relationship stores the semantic meaning. Examples:
(:KGMemory)-[:KG_RELATED_TO {type: "USES_LANGUAGE"}]->(:KGConcept {name: "Python"})(:KGMemory)-[:KG_RELATED_TO {type: "TAGGED_WITH"}]->(:KGConcept {name: "asyncio"})(:KGMemory)-[:KG_RELATED_TO {type: "IS_OF_TYPE"}]->(:KGConcept {name: "code_pattern"})API Endpoints for Knowledge Graph (Prefix: /kg):
POST /kg/concept: Creates or merges a :KGConcept node.
KGConcept model (name, type, description).POST /kg/link_memory_to_concept: Links a memory item to a concept. Creates the :KGMemory and :KGConcept nodes if they don't exist, then creates/merges the relationship.
LinkMemoryToConceptRequest (memory_id, memory_name, memory_type, concept_name, concept_type, relationship_type).GET /kg/memory_item/{memory_id}/related_concepts: Retrieves all :KGConcept nodes directly linked to a given :KGMemory node (identified by memory_id), along with the type of relationship.
Automatic Knowledge Graph Updates:
MemoryItem is stored via the POST /memory/store endpoint:
:KGMemory node is created/merged in Neo4j using the memory_id from Qdrant.:KGConcept nodes are created/merged for the memory item's language (if present), each of its tags, and its own type (e.g., 'code_pattern').:KGMemory node is then linked to these :KGConcept nodes using appropriate KG_RELATED_TO relationships (e.g., with type: "USES_LANGUAGE", type: "TAGGED_WITH", type: "IS_OF_TYPE").This initial Neo4j integration provides the foundational structure for building more sophisticated knowledge representation and graph-based query capabilities as outlined in the Coder DB vision. Future work will involve expanding the schema, adding more relationship types, integrating algorithms into the graph, and developing more complex analytical queries.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Coder DB MCP memory server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/coder_db)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.