IMS MCP Server

IMS MCP Server

Exposes the Integrated Memory System (IMS) capabilities, including session management, memory storage, and RAG-based context search, via the Model Context Protocol. It allows MCP-aware clients to interact with IMS backends to maintain long-term memory and context across sessions.

Category
Visit Server

README

IMS MCP Server

MCP server that exposes the Integrated Memory System (IMS) as tools via the Model Context Protocol Python SDK.

It wraps the existing IMS HTTP backend (session-memory, memory-core, context-rag) and makes those capabilities available to MCP-aware clients (e.g. mcphub, Warp, VS Code, LibreChat).

Prerequisites

  • Python 3.10+
  • An IMS backend running somewhere reachable (FastAPI/Uvicorn service), e.g.:
    • http://localhost:8000, or
    • http://ims.delongpa.com
  • The integrated-memory-system repo checked out on disk in this layout (relative to this project):
<some-parent-dir>/
  skills/
    integrated-memory-system/   # IMS FastAPI project (provides IMSClient)
  ims-mcp/                      # this repo

server.py imports IMSClient from skills/integrated-memory-system/app/ims_client.py using a relative path; if your layout is different, adjust server.py accordingly.

Installation (venv + pip)

From the ims-mcp directory:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

This installs the official MCP Python SDK (mcp[cli]).

Configuration

The MCP server talks to IMS via environment variables. These can be provided in three ways (in order of increasing precedence):

  1. A local .env file in the project root (or a path specified by IMS_ENV_FILE)
  2. The process environment (e.g. exported variables in your shell)
  3. Environment variables set by the MCP host (e.g. mcphub env block)

Supported variables:

  • IMS_BASE_URL (required)
    • Base URL of the IMS HTTP service, e.g. http://localhost:8000 or https://ims.delongpa.com.
  • IMS_HTTP_TIMEOUT (optional, default 5.0 seconds)
  • IMS_CLIENT_NAME (optional, default "ims-mcp")
  • IMS_ENV_FILE (optional, default .env)
    • If set, points to a .env-style file to load before reading other vars.

Using a .env file (local development)

Create a file named .env next to server.py:

IMS_BASE_URL=http://localhost:8000
IMS_HTTP_TIMEOUT=5.0
IMS_CLIENT_NAME=ims-mcp

You can override the file name/path with IMS_ENV_FILE if needed.

Setting variables directly

Example using exported variables:

export IMS_BASE_URL="http://ims.delongpa.com"
export IMS_HTTP_TIMEOUT="5.0"
export IMS_CLIENT_NAME="ims-mcp"

Running the MCP server locally

With the venv activated and IMS_BASE_URL set:

source .venv/bin/activate
export IMS_BASE_URL="http://localhost:8000"  # or your IMS URL
python server.py

The server runs over stdio, which is what MCP clients expect when they spawn it as a subprocess.

mcphub configuration example

To use this server from mcphub on a host where you cloned this repo to /opt/mcps/ims-mcp and created the venv as above, add an entry like:

"IMS-MCP": {
  "type": "stdio",
  "command": "/opt/mcps/ims-mcp/.venv/bin/python",
  "args": [
    "/opt/mcps/ims-mcp/server.py"
  ],
  "env": {
    "IMS_BASE_URL": "http://ims.delongpa.com"
  }
}

Adjust paths and IMS_BASE_URL to match your environment.

Exposed tools

The MCP server exposes the following tools (namespaces follow the IMS service names):

  • ims.context-rag.context_search
    • Wrapper over POST /context/search.
  • ims.memory-core.store_memory
    • Wrapper over POST /memories/store.
  • ims.memory-core.find_memories
    • Wrapper over POST /memories/search.
  • ims.session-memory.auto_session
    • Wrapper over POST /sessions/auto.
  • ims.session-memory.continue_session
    • Wrapper over POST /sessions/continue.
  • ims.session-memory.wrap_session
    • Wrapper over POST /sessions/wrap.
  • ims.session-memory.list_open_sessions
    • Wrapper over POST /sessions/list_open.
  • ims.session-memory.resume_session
    • Wrapper over POST /sessions/resume.

For detailed behavior of these endpoints, see spec/API_ENDPOINTS.md in the integrated-memory-system repo and AGENTS.md in this repo for the IMS agent protocol.

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
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
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
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