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 withroleandcontentsession_id(required): Session identifierexpert_id(optional): Expert ID, default "default"domain(optional): Business domain, default "general"
search_memories
Search and retrieve stored memories.
Parameters:
query(optional): Search keywordslayer(optional): Memory layer (L1-L5)domain(optional): Business domainlimit(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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75a3bf78a9340cdd2e8dac333a9e8795bae5daeee99361935c3b125d344fcf3f
|
|
| MD5 |
7755bb872a9997f0f4b215f88a8e907c
|
|
| BLAKE2b-256 |
4c045f680431e863f1a83134ec76b3d726267e04e2e6fe500828c13a7b47b638
|
Provenance
The following attestation bundles were made for timem_mcp-0.1.1.tar.gz:
Publisher:
publish.yml on TiMEM-AI/timem-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timem_mcp-0.1.1.tar.gz -
Subject digest:
75a3bf78a9340cdd2e8dac333a9e8795bae5daeee99361935c3b125d344fcf3f - Sigstore transparency entry: 849941939
- Sigstore integration time:
-
Permalink:
TiMEM-AI/timem-mcp@dfa8fb0ef64008b0f7afb13a0036718d6f1cc415 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/TiMEM-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dfa8fb0ef64008b0f7afb13a0036718d6f1cc415 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b61e18b65c086a2ae4764b1931a802dcb6e6cec3e133600791bca324581fd1a6
|
|
| MD5 |
beca799bd7ea46edb7d3979aa3eb7420
|
|
| BLAKE2b-256 |
c600ac604237018248407f1d5f7873f03504387a88db796a5bf9d5aa2200115e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timem_mcp-0.1.1-py3-none-any.whl -
Subject digest:
b61e18b65c086a2ae4764b1931a802dcb6e6cec3e133600791bca324581fd1a6 - Sigstore transparency entry: 849941944
- Sigstore integration time:
-
Permalink:
TiMEM-AI/timem-mcp@dfa8fb0ef64008b0f7afb13a0036718d6f1cc415 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/TiMEM-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dfa8fb0ef64008b0f7afb13a0036718d6f1cc415 -
Trigger Event:
push
-
Statement type: