You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Tag filters (session_id, namespace, topics, entities, user_id):
111
+
-`eq`: Equals this value
112
+
-`ne`: Not equals this value
113
+
-`any`: Contains any of these values
114
+
-`all`: Contains all of these values
115
+
116
+
- Numeric filters (created_at, last_accessed):
117
+
-`gt`: Greater than
118
+
-`lt`: Less than
119
+
-`gte`: Greater than or equal
120
+
-`lte`: Less than or equal
121
+
-`eq`: Equals
122
+
-`ne`: Not equals
123
+
-`between`: Between two values
124
+
78
125
## MCP Server Interface
79
126
Agent Memory Server offers an MCP (Model Context Protocol) server interface powered by FastMCP, providing tool-based long-term memory management:
80
127
@@ -86,15 +133,29 @@ Agent Memory Server offers an MCP (Model Context Protocol) server interface powe
86
133
87
134
### Local Install
88
135
89
-
1. Install the package and required dependencies:
136
+
First, you'll need to download this repository. After you've downloaded it, you can install and run the servers.
137
+
138
+
1. Install the package and required dependencies with pip, ideally into a virtual environment:
90
139
```bash
91
140
pip install -e .
92
141
```
93
142
94
-
2. Start both the REST API server and MCP server:
143
+
**NOTE:** This project uses `uv` for dependency management, so if you have uv installed, you can run `uv sync` instead of `pip install ...` to install the project's dependencies.
144
+
145
+
2 (a). The easiest way to start the REST API server and MCP server in SSE mode is to use Docker Compose. See the Docker Compose section of this file for more details.
146
+
147
+
2 (b). You can also run the REST API and MCP servers directly:
148
+
#### REST API
95
149
```bash
96
150
python -m agent_memory_server.main
97
151
```
152
+
#### MCP Server
153
+
The MCP server can run in either SSE mode or stdio:
154
+
```bash
155
+
python -m agent_memory_server.mcp <sse|stdio>
156
+
```
157
+
158
+
**NOTE:** With uv, just prefix the command with `uv`, e.g.: `uv run python -m agent_memory_server.mcp sse`.
98
159
99
160
### Docker Compose
100
161
@@ -114,6 +175,51 @@ To start the API using Docker Compose, follow these steps:
114
175
6. To stop the containers, press Ctrl+C in the terminal and then run:
115
176
docker-compose down
116
177
178
+
## Using the MCP Server with Claude Desktop, Cursor, etc.
179
+
You can use the MCP server that comes with this project in any application or SDK that supports MCP tools.
180
+
181
+
### Claude
182
+
<imgsrc="claude.png">
183
+
184
+
For example, with Claude, use the following configuration:
0 commit comments