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.1.tar.gz (7.4 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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timem_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 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.1.tar.gz
Algorithm Hash digest
SHA256 75a3bf78a9340cdd2e8dac333a9e8795bae5daeee99361935c3b125d344fcf3f
MD5 7755bb872a9997f0f4b215f88a8e907c
BLAKE2b-256 4c045f680431e863f1a83134ec76b3d726267e04e2e6fe500828c13a7b47b638

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: timem_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b61e18b65c086a2ae4764b1931a802dcb6e6cec3e133600791bca324581fd1a6
MD5 beca799bd7ea46edb7d3979aa3eb7420
BLAKE2b-256 c600ac604237018248407f1d5f7873f03504387a88db796a5bf9d5aa2200115e

See more details on using hashes here.

Provenance

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