Metadata-Version: 2.4
Name: chatmcp_memory
Version: 0.0.6
Summary: An MCP server able to give large language models the power to remember.
Project-URL: Homepage, https://github.com/vearne/chatmcp_memory
Author-email: vearne <asdwoshiaotian@gmail.com>
License: MIT
License-File: LICENSE
Requires-Python: >=3.8
Requires-Dist: fastmcp==2.10.5
Requires-Dist: pydantic==2.11.7
Description-Content-Type: text/markdown

# chatmcp_memory
An MCP server able to give large language models the power to remember.<br/>
Only supports [daodao97/chatmcp](https://github.com/daodao97/chatmcp)

## Principle
[daodao97/chatmcp](https://github.com/daodao97/chatmcp) uses SQLite to store chat history between users and the LLM.
Therefore, chatmcp_memory can directly query SQLite to retrieve previous conversations, achieving memory retrieval.
## Usage
`chatmcp_memory` will attempt to automatically discover the location of `chatmcp.db`. 
Of course, it can also be specified via environment variables.
```
export DB_FILE_PATH=/tmp/chatmcp.db
```
### 1. use with uvx
```
"mcpServers": {
    "chatmcp_memory": {
        "command": "uvx",
        "args": ["chatmcp_memory"]
    }
}
```
### 2.Install and Run
```
pip install chatmcp_memory
```
#### Method 1: Run with transport 'stdio'
```
python3 -m chatmcp_memory
```
#### Method 2: Run with transport 'streamable-http'
```
python3 -m chatmcp_memory --http --bind="127.0.0.1" --port=8090
```
Server URL: http://127.0.0.1:8090/mcp/

