Skip to main content
Glama

Central-Memory-MCP

Central Memory MCP Server

Model Context Protocol (MCP) memory server built with Azure Functions and TypeScript, providing persistent knowledge graph storage for AI assistants in VS Code.
Inspired by and forked from @modelcontextprotocol/server-memory

🚀 Quick Start

npm install func start

VS Code Integration

  1. Install recommended extensions from .vscode/extensions.json
  2. MCP configuration is ready in .vscode/mcp.json
  3. Use #memory-test tools in VS Code Copilot chat

Note: All MCP tools now use object parameters instead of JSON strings for better type safety and ease of use.

Test the Server

# Health check curl http://localhost:7071/api/health # Use in VS Code Copilot with object parameters: # #memory-test_create_entities # #memory-test_read_graph # #memory-test_search_entities

Example Usage in VS Code Copilot

Create an entity: #memory-test_create_entities workspaceId="my-project" entities={"name": "Alice", "entityType": "Person", "observations": ["Software engineer"]} Create a relation: #memory-test_create_relations workspaceId="my-project" relations={"from": "Alice", "to": "React Project", "relationType": "worksOn"} Search entities: #memory-test_search_entities workspaceId="my-project" name="Alice"

🔧 MCP Tools

Core Operations:

  • create_entities - Create single entity with observations
  • create_relations - Create single relationship between entities
  • read_graph - Read the entire knowledge graph
  • search_entities / search_relations - Search by name/type
  • add_observation - Add observations to existing entities
  • update_entity - Update entity observations and metadata
  • delete_entity - Remove entity and all its relations
  • get_stats - Get workspace statistics
  • clear_memory - Clear all workspace data

Advanced Features:

  • get_temporal_events - Time-based activity tracking
  • merge_entities - Merge duplicate entities
  • detect_duplicate_entities - Find potential duplicates
  • execute_batch_operations - Batch multiple operations
  • get_user_stats - Get user-specific statistics
  • search_relations_by_user - Find relations by user

🏗️ Architecture

Built with:

  • Azure Functions v4 with TypeScript
  • Azure Table Storage for persistent data (via Azurite locally)
  • Model Context Protocol (MCP) for VS Code integration
  • Workspace isolation - each project gets separate storage

� Project Structure

src/ ├── functions/ # Azure Functions endpoints ├── services/ # Business logic (storage, entities, relations) ├── types/ # TypeScript definitions └── index.ts # Main entry point

📚 Documentation

For detailed information, see the .docs/ folder:

🔒 Production Notes

  • Uses Azure Table Storage with managed identity for security
  • Workspace isolation prevents data leakage between projects
  • Health endpoints for monitoring and container orchestration
  • Automatic fallback to local storage for development

📝 License

MIT License - see LICENSE file for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Model Context Protocol (MCP) memory server built with Azure Functions and TypeScript, providing persistent knowledge graph storage for your preferred MCP client. Inspired by and forked from @modelcontextprotocol/server-memory

  1. 🚀 Quick Start
    1. VS Code Integration
    2. Test the Server
    3. Example Usage in VS Code Copilot
  2. 🔧 MCP Tools
    1. 🏗️ Architecture
      1. � Project Structure
        1. 📚 Documentation
          1. 🔒 Production Notes
            1. 📝 License

              Related MCP Servers

              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol (MCP) server that optimizes token usage by caching data during language model interactions, compatible with any language model and MCP client.
                Last updated -
                4
                2
                JavaScript
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs).
                Last updated -
                1
                9
                1
                JavaScript
                Apache 2.0
              • A
                security
                F
                license
                A
                quality
                An all-in-one Model Context Protocol (MCP) server that connects your coding AI to numerous databases, data warehouses, data pipelines, and cloud services, streamlining development workflow through seamless integrations.
                Last updated -
                2
                Python
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                Model Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.
                Last updated -
                27
                2
                TypeScript
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/MWGMorningwood/Central-Memory-MCP'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server