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.

Get Your API key

To use this server, you need to obtain an API key from TiMEM Engine.

Configure and Use

Configure

Add to your AI IDE configuration:

{
  "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>" // optional
      }
    }
  }
}

The server reads configuration from environment variables:

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

Add Rules

Add the following rules to your AI IDE:

当识别到“请记住”或你认为需要积累的记忆、经验时,请调用create_memory tool;

当你认为需要检索历史记忆时,调用search_memories搜索相关记忆。
When you identify "please remember" or you think you need to accumulate memories or experiences, please call the create_memory tool;

When you think you need to retrieve past memories, call the search_memories tool.

Use

Restart your AI IDE and chat!

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"

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

Development

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

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.3.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.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timem_mcp-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0f7109c361d7a24dc73c60b8f4b49de3d9d957d56fd27ee87dba7c89d46a2c2c
MD5 1f2b7e8a34f7c34e53389f66f6a91073
BLAKE2b-256 646c872058955a1f6357a7da5ec5a2f3f25cb53ec0b6ec7ff57270163fe937c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for timem_mcp-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: timem_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e71393ff3f7acbf5064145302c06efa6ff42bde9787e559245b5244907a221e3
MD5 cfb03c14cf0bd0bae9805eff6f44cf36
BLAKE2b-256 28e3958cb0400f1603eaae05f86e9b360fffa949a2a3c77bdc6847e65f899fde

See more details on using hashes here.

Provenance

The following attestation bundles were made for timem_mcp-0.1.3-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