Skip to main content

TiMEM MCP Server - Model Context Protocol server for TiMEM Engine

Project description

TiMEM MCP Server

Model Context Protocol server for TiMEM Engine, providing memory management tools for AI applications.

Installation

pip install timem-mcp

Usage

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "TiMEM-MCP": {
      "command": "uvx",
      "args": ["timem-mcp"],
      "env": {
        "TiMEM_API_KEY": "<your-api-key>",
        "TiMEM_API_HOST": "https://api.timem.cloud",  // optional
        "TiMEM_USER_ID": "<your-user-id>"
      }
    }
  }
}

Direct Execution

# Using uvx (recommended)
uvx timem-mcp

# Or using Python module
python -m timem_mcp

# Or directly if installed
timem-mcp

Configuration

The server reads configuration from environment variables:

Variable Required Default Description
TiMEM_API_KEY Yes - Your TiMEM Engine API key
TiMEM_USER_ID Yes - User identifier for memory operations
TiMEM_API_HOST No https://api.timem.cloud TiMEM Engine API endpoint

Note: Both TiMEM_* and TIMEM_* prefixes are supported. TiMEM_* takes priority.

Available Tools

create_memory

Create memories from conversation history.

Parameters:

  • messages (required): List of message objects with role and content
  • session_id (required): Session identifier
  • expert_id (optional): Expert ID, default "default"
  • domain (optional): Business domain, default "general"

Example:

await create_memory(
    messages=[
        {"role": "user", "content": "My name is John"},
        {"role": "assistant", "content": "Hello John!"}
    ],
    session_id="sess_123",
    expert_id="default",
    domain="general"
)

search_memories

Search and retrieve stored memories.

Parameters:

  • query (optional): Search keywords
  • layer (optional): Memory layer (L1-L5)
  • domain (optional): Business domain
  • limit (optional): Result count, default 10

Example:

await search_memories(query="John", layer="L1", limit=5)

ready

Health check endpoint to verify the server is running.

Development

# Install in development mode
pip install -e .

# Run tests
pytest

# Run with MCP Inspector
npx @modelcontextprotocol/inspector uvx --from <your-local-path> timem-mcp -e TiMEM_API_HOST=http://localhost:8000 -e TiMEM_API_KEY=<your-api-key> -e TiMEM_USER_ID=<your-user-id>

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timem_mcp-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timem_mcp-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file timem_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: timem_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for timem_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd57373ba6c1ee4ced567579af6c56bff5b111eac561bc421552c3e9252981f1
MD5 72b1592679c35d7cf858b728d38215cd
BLAKE2b-256 f56d5d04ba8726f0120c2147d1795437c41bcdeed0d393707c0c1c5ae8b954df

See more details on using hashes here.

Provenance

The following attestation bundles were made for timem_mcp-0.1.0.tar.gz:

Publisher: publish.yml on TiMEM-AI/timem-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file timem_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: timem_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for timem_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2567fef963849ee7d2e6ed0d785cd4f71e4afc9ae3fc41c076245a7be9f537e9
MD5 6c30ae4797d8dc7b7178d88b88761cdb
BLAKE2b-256 789195b954cf39498259287238bd84b3ad1abe19e8b1c97fc3b4bdfdc5f6869d

See more details on using hashes here.

Provenance

The following attestation bundles were made for timem_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on TiMEM-AI/timem-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page