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 withroleandcontentsession_id(required): Session identifierexpert_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 keywordslayer(optional): Memory layer (L1-L5)domain(optional): Business domainlimit(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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd57373ba6c1ee4ced567579af6c56bff5b111eac561bc421552c3e9252981f1
|
|
| MD5 |
72b1592679c35d7cf858b728d38215cd
|
|
| BLAKE2b-256 |
f56d5d04ba8726f0120c2147d1795437c41bcdeed0d393707c0c1c5ae8b954df
|
Provenance
The following attestation bundles were made for timem_mcp-0.1.0.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.0.tar.gz -
Subject digest:
bd57373ba6c1ee4ced567579af6c56bff5b111eac561bc421552c3e9252981f1 - Sigstore transparency entry: 849935026
- Sigstore integration time:
-
Permalink:
TiMEM-AI/timem-mcp@54c60122751fd10c17396fdc17a1fa6ffc6e23bc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TiMEM-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@54c60122751fd10c17396fdc17a1fa6ffc6e23bc -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2567fef963849ee7d2e6ed0d785cd4f71e4afc9ae3fc41c076245a7be9f537e9
|
|
| MD5 |
6c30ae4797d8dc7b7178d88b88761cdb
|
|
| BLAKE2b-256 |
789195b954cf39498259287238bd84b3ad1abe19e8b1c97fc3b4bdfdc5f6869d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timem_mcp-0.1.0-py3-none-any.whl -
Subject digest:
2567fef963849ee7d2e6ed0d785cd4f71e4afc9ae3fc41c076245a7be9f537e9 - Sigstore transparency entry: 849935028
- Sigstore integration time:
-
Permalink:
TiMEM-AI/timem-mcp@54c60122751fd10c17396fdc17a1fa6ffc6e23bc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TiMEM-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@54c60122751fd10c17396fdc17a1fa6ffc6e23bc -
Trigger Event:
workflow_dispatch
-
Statement type: