better-mem0-mcp 1.1.5__tar.gz → 1.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.github/workflows/cd.yml +1 -1
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.mise.toml +1 -1
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/CHANGELOG.md +9 -2
- better_mem0_mcp-1.1.6/CODE_OF_CONDUCT.md +82 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/CONTRIBUTING.md +49 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/PKG-INFO +53 -28
- better_mem0_mcp-1.1.6/README.md +145 -0
- better_mem0_mcp-1.1.6/SECURITY.md +32 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/pyproject.toml +1 -1
- better_mem0_mcp-1.1.5/README.md +0 -120
- better_mem0_mcp-1.1.5/SECURITY.md +0 -27
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.dockerignore +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.editorconfig +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.github/scripts/check-ci-cd-status.sh +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.github/scripts/merge-with-auto-resolve.sh +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.github/workflows/ci.yml +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.gitignore +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.pre-commit-config.yaml +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.python-version +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.releaserc.json +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/.vscode/better-mem0-mcp.code-workspace +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/Dockerfile +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/LICENSE +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/package-lock.json +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/package.json +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/scripts/clean-venv.mjs +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/src/better_mem0_mcp/__init__.py +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/src/better_mem0_mcp/__main__.py +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/src/better_mem0_mcp/config.py +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/src/better_mem0_mcp/docs/memory.md +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/src/better_mem0_mcp/graph.py +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/src/better_mem0_mcp/py.typed +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/src/better_mem0_mcp/server.py +0 -0
- {better_mem0_mcp-1.1.5 → better_mem0_mcp-1.1.6}/uv.lock +0 -0
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
## [1.1.
|
|
1
|
+
## [1.1.6](https://github.com/n24q02m/better-mem0-mcp/compare/v1.1.5...v1.1.6) (2026-01-12)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* update Node.js version to 24 in CI/CD configuration and Mise setup ([92ab0a9](https://github.com/n24q02m/better-mem0-mcp/commit/92ab0a96cd30643b9ecf927c68b46cde6472d732))
|
|
7
|
+
|
|
8
|
+
# [1.1.0-beta.21](https://github.com/n24q02m/better-mem0-mcp/compare/v1.1.0-beta.20...v1.1.0-beta.21) (2026-01-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update Node.js version to 24 in CI/CD configuration and Mise setup ([92ab0a9](https://github.com/n24q02m/better-mem0-mcp/commit/92ab0a96cd30643b9ecf927c68b46cde6472d732))
|
|
7
14
|
|
|
8
15
|
# [1.1.0-beta.20](https://github.com/n24q02m/better-mem0-mcp/compare/v1.1.0-beta.19...v1.1.0-beta.20) (2026-01-05)
|
|
9
16
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
+
|
|
9
|
+
## Our Standards
|
|
10
|
+
|
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
|
+
|
|
13
|
+
- Demonstrating empathy and kindness toward other people
|
|
14
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
+
- Giving and gracefully accepting constructive feedback
|
|
16
|
+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
+
|
|
19
|
+
Examples of unacceptable behavior include:
|
|
20
|
+
|
|
21
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
22
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
23
|
+
- Public or private harassment
|
|
24
|
+
- Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
25
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
26
|
+
|
|
27
|
+
## Enforcement Responsibilities
|
|
28
|
+
|
|
29
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
+
|
|
31
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
32
|
+
|
|
33
|
+
## Scope
|
|
34
|
+
|
|
35
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
36
|
+
|
|
37
|
+
## Enforcement
|
|
38
|
+
|
|
39
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at quangminh2402.dev@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
|
40
|
+
|
|
41
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
42
|
+
|
|
43
|
+
## Enforcement Guidelines
|
|
44
|
+
|
|
45
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
46
|
+
|
|
47
|
+
### 1. Correction
|
|
48
|
+
|
|
49
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
50
|
+
|
|
51
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
52
|
+
|
|
53
|
+
### 2. Warning
|
|
54
|
+
|
|
55
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
56
|
+
|
|
57
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
58
|
+
|
|
59
|
+
### 3. Temporary Ban
|
|
60
|
+
|
|
61
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
62
|
+
|
|
63
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
64
|
+
|
|
65
|
+
### 4. Permanent Ban
|
|
66
|
+
|
|
67
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
68
|
+
|
|
69
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
70
|
+
|
|
71
|
+
## Attribution
|
|
72
|
+
|
|
73
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
|
74
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
75
|
+
|
|
76
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
|
77
|
+
|
|
78
|
+
[homepage]: https://www.contributor-covenant.org
|
|
79
|
+
|
|
80
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
81
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
82
|
+
https://www.contributor-covenant.org/translations.
|
|
@@ -84,6 +84,8 @@ We use [Conventional Commits](https://www.conventionalcommits.org/):
|
|
|
84
84
|
- `perf`: Performance improvements
|
|
85
85
|
- `test`: Adding or updating tests
|
|
86
86
|
- `chore`: Maintenance tasks
|
|
87
|
+
- `ci`: CI/CD changes
|
|
88
|
+
- `build`: Build system changes
|
|
87
89
|
|
|
88
90
|
### Examples
|
|
89
91
|
|
|
@@ -93,6 +95,44 @@ fix: handle database connection timeout
|
|
|
93
95
|
docs: update configuration examples
|
|
94
96
|
```
|
|
95
97
|
|
|
98
|
+
## Release Process
|
|
99
|
+
|
|
100
|
+
Releases are automated using **Semantic Release**. We strictly follow the **Conventional Commits** specification to determine version bumps and generate changelogs automatically.
|
|
101
|
+
|
|
102
|
+
### How to Release
|
|
103
|
+
|
|
104
|
+
1. Create a Pull Request with your changes.
|
|
105
|
+
2. Ensure your commit messages follow the convention above.
|
|
106
|
+
3. Merge the PR to `main`.
|
|
107
|
+
4. The CI pipeline will automatically:
|
|
108
|
+
- Analyze the new commits
|
|
109
|
+
- Determine the next version number
|
|
110
|
+
- Generate release notes
|
|
111
|
+
- Update `CHANGELOG.md`
|
|
112
|
+
- Publish to PyPI
|
|
113
|
+
- Create a GitHub Release
|
|
114
|
+
- Build and push Docker images
|
|
115
|
+
|
|
116
|
+
You do **not** need to create manual tags or changelog entries.
|
|
117
|
+
|
|
118
|
+
## Pull Request Guidelines
|
|
119
|
+
|
|
120
|
+
- Keep PRs focused on a single feature or fix
|
|
121
|
+
- Update documentation if needed
|
|
122
|
+
- Add tests for new functionality
|
|
123
|
+
- Ensure all checks pass
|
|
124
|
+
|
|
125
|
+
### PR Checklist
|
|
126
|
+
|
|
127
|
+
Before submitting your PR, ensure:
|
|
128
|
+
|
|
129
|
+
- [ ] Code follows Python best practices
|
|
130
|
+
- [ ] All tests pass (`uv run pytest`)
|
|
131
|
+
- [ ] Linting passes (`uv run ruff check .`)
|
|
132
|
+
- [ ] Formatting is correct (`uv run ruff format --check .`)
|
|
133
|
+
- [ ] Commit messages follow **Conventional Commits**
|
|
134
|
+
- [ ] Documentation updated (if needed)
|
|
135
|
+
|
|
96
136
|
## Code Style
|
|
97
137
|
|
|
98
138
|
This project uses **Ruff** for formatting and linting.
|
|
@@ -126,6 +166,15 @@ better-mem0-mcp/
|
|
|
126
166
|
└── README.md
|
|
127
167
|
```
|
|
128
168
|
|
|
169
|
+
## Questions?
|
|
170
|
+
|
|
171
|
+
Feel free to open an issue for:
|
|
172
|
+
|
|
173
|
+
- Bug reports
|
|
174
|
+
- Feature requests
|
|
175
|
+
- Questions about the codebase
|
|
176
|
+
- Discussion about architecture
|
|
177
|
+
|
|
129
178
|
## License
|
|
130
179
|
|
|
131
180
|
By contributing, you agree that your contributions will be licensed under the MIT License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: better-mem0-mcp
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.6
|
|
4
4
|
Summary: Zero-setup MCP Server for AI memory - works with Neon/Supabase
|
|
5
5
|
Project-URL: Homepage, https://github.com/n24q02m/better-mem0-mcp
|
|
6
6
|
Project-URL: Repository, https://github.com/n24q02m/better-mem0-mcp.git
|
|
@@ -29,16 +29,28 @@ Description-Content-Type: text/markdown
|
|
|
29
29
|
|
|
30
30
|
# better-mem0-mcp
|
|
31
31
|
|
|
32
|
-
**
|
|
32
|
+
**Self-hosted MCP Server for AI memory with PostgreSQL (pgvector).**
|
|
33
33
|
|
|
34
|
-
[](https://pypi.org/project/better-mem0-mcp/)
|
|
35
|
+
[](https://hub.docker.com/r/n24q02m/better-mem0-mcp)
|
|
36
|
+
[](LICENSE)
|
|
37
|
+
|
|
38
|
+
## Features
|
|
39
|
+
|
|
40
|
+
- **Self-hosted PostgreSQL** - Your data stays with you (Neon/Supabase free tier supported)
|
|
41
|
+
- **Graph Memory** - SQL-based relationship tracking alongside vector memory
|
|
42
|
+
- **Multi-provider LLM** - Gemini, OpenAI, Anthropic, Groq, DeepSeek, Mistral
|
|
43
|
+
- **Fallback chains** - Multi-key per provider + multi-model fallback
|
|
44
|
+
- **Zero manual setup** - Just `DATABASE_URL` + `API_KEYS`
|
|
45
|
+
|
|
46
|
+
---
|
|
35
47
|
|
|
36
48
|
## Quick Start
|
|
37
49
|
|
|
38
50
|
### 1. Get Prerequisites
|
|
39
51
|
|
|
40
|
-
- **Database**: [Neon](https://neon.tech) or [Supabase](https://supabase.com) (free tier)
|
|
41
|
-
- **API Key**: [Google AI Studio](https://aistudio.google.com/apikey)
|
|
52
|
+
- **Database**: [Neon](https://neon.tech) or [Supabase](https://supabase.com) (free tier works)
|
|
53
|
+
- **API Key**: Any supported provider ([Google AI Studio](https://aistudio.google.com/apikey) is free)
|
|
42
54
|
|
|
43
55
|
### 2. Add to mcp.json
|
|
44
56
|
|
|
@@ -78,7 +90,7 @@ Description-Content-Type: text/markdown
|
|
|
78
90
|
|
|
79
91
|
### 3. Done!
|
|
80
92
|
|
|
81
|
-
Ask
|
|
93
|
+
Ask your AI: "Remember that I prefer dark mode and use FastAPI"
|
|
82
94
|
|
|
83
95
|
---
|
|
84
96
|
|
|
@@ -86,22 +98,26 @@ Ask Claude: "Remember that I prefer dark mode and use FastAPI"
|
|
|
86
98
|
|
|
87
99
|
| Variable | Required | Description |
|
|
88
100
|
|----------|----------|-------------|
|
|
89
|
-
| `DATABASE_URL` | Yes | PostgreSQL
|
|
90
|
-
| `API_KEYS` | Yes | `provider:key
|
|
91
|
-
| `LLM_MODELS` | No |
|
|
92
|
-
| `EMBEDDER_MODELS` | No |
|
|
101
|
+
| `DATABASE_URL` | Yes | PostgreSQL with pgvector extension |
|
|
102
|
+
| `API_KEYS` | Yes | `provider:key` pairs, comma-separated |
|
|
103
|
+
| `LLM_MODELS` | No | Model fallback chain |
|
|
104
|
+
| `EMBEDDER_MODELS` | No | Embedding model chain |
|
|
105
|
+
|
|
106
|
+
### Supported Providers
|
|
107
|
+
|
|
108
|
+
`gemini`, `openai`, `anthropic`, `groq`, `deepseek`, `mistral`
|
|
93
109
|
|
|
94
110
|
### Examples
|
|
95
111
|
|
|
96
|
-
**
|
|
97
|
-
```
|
|
112
|
+
**Single provider:**
|
|
113
|
+
```bash
|
|
98
114
|
API_KEYS=gemini:AIza...
|
|
99
115
|
```
|
|
100
116
|
|
|
101
117
|
**Multi-key with fallback:**
|
|
102
|
-
```
|
|
118
|
+
```bash
|
|
103
119
|
API_KEYS=gemini:AIza-1,gemini:AIza-2,openai:sk-xxx
|
|
104
|
-
LLM_MODELS=gemini/gemini-
|
|
120
|
+
LLM_MODELS=gemini/gemini-3-flash-preview,openai/gpt-4o-mini
|
|
105
121
|
EMBEDDER_MODELS=gemini/gemini-embedding-001,openai/text-embedding-3-small
|
|
106
122
|
```
|
|
107
123
|
|
|
@@ -109,7 +125,7 @@ EMBEDDER_MODELS=gemini/gemini-embedding-001,openai/text-embedding-3-small
|
|
|
109
125
|
|
|
110
126
|
| Setting | Default |
|
|
111
127
|
|---------|---------|
|
|
112
|
-
| `LLM_MODELS` | `gemini/gemini-
|
|
128
|
+
| `LLM_MODELS` | `gemini/gemini-3-flash-preview` |
|
|
113
129
|
| `EMBEDDER_MODELS` | `gemini/gemini-embedding-001` |
|
|
114
130
|
|
|
115
131
|
---
|
|
@@ -118,32 +134,41 @@ EMBEDDER_MODELS=gemini/gemini-embedding-001,openai/text-embedding-3-small
|
|
|
118
134
|
|
|
119
135
|
| Tool | Description |
|
|
120
136
|
|------|-------------|
|
|
121
|
-
| `memory` | `
|
|
122
|
-
| `help` |
|
|
137
|
+
| `memory` | Memory operations: `add`, `search`, `list`, `delete` |
|
|
138
|
+
| `help` | Get full documentation for tools |
|
|
123
139
|
|
|
124
|
-
### Usage
|
|
140
|
+
### Usage Examples
|
|
125
141
|
|
|
126
142
|
```json
|
|
127
143
|
{"action": "add", "content": "I prefer TypeScript over JavaScript"}
|
|
128
|
-
{"action": "search", "query": "preferences"}
|
|
144
|
+
{"action": "search", "query": "programming preferences"}
|
|
129
145
|
{"action": "list"}
|
|
130
146
|
{"action": "delete", "memory_id": "abc123"}
|
|
131
147
|
```
|
|
132
148
|
|
|
133
149
|
---
|
|
134
150
|
|
|
135
|
-
##
|
|
151
|
+
## Build from Source
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
git clone https://github.com/n24q02m/better-mem0-mcp
|
|
155
|
+
cd better-mem0-mcp
|
|
136
156
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
157
|
+
# Setup (requires mise: https://mise.jdx.dev/)
|
|
158
|
+
mise run setup
|
|
159
|
+
|
|
160
|
+
# Run
|
|
161
|
+
uv run better-mem0-mcp
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Requirements:** Python 3.13+
|
|
144
165
|
|
|
145
166
|
---
|
|
146
167
|
|
|
168
|
+
## Contributing
|
|
169
|
+
|
|
170
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
171
|
+
|
|
147
172
|
## License
|
|
148
173
|
|
|
149
|
-
MIT
|
|
174
|
+
MIT - See [LICENSE](LICENSE)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# better-mem0-mcp
|
|
2
|
+
|
|
3
|
+
**Self-hosted MCP Server for AI memory with PostgreSQL (pgvector).**
|
|
4
|
+
|
|
5
|
+
[](https://pypi.org/project/better-mem0-mcp/)
|
|
6
|
+
[](https://hub.docker.com/r/n24q02m/better-mem0-mcp)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Self-hosted PostgreSQL** - Your data stays with you (Neon/Supabase free tier supported)
|
|
12
|
+
- **Graph Memory** - SQL-based relationship tracking alongside vector memory
|
|
13
|
+
- **Multi-provider LLM** - Gemini, OpenAI, Anthropic, Groq, DeepSeek, Mistral
|
|
14
|
+
- **Fallback chains** - Multi-key per provider + multi-model fallback
|
|
15
|
+
- **Zero manual setup** - Just `DATABASE_URL` + `API_KEYS`
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
### 1. Get Prerequisites
|
|
22
|
+
|
|
23
|
+
- **Database**: [Neon](https://neon.tech) or [Supabase](https://supabase.com) (free tier works)
|
|
24
|
+
- **API Key**: Any supported provider ([Google AI Studio](https://aistudio.google.com/apikey) is free)
|
|
25
|
+
|
|
26
|
+
### 2. Add to mcp.json
|
|
27
|
+
|
|
28
|
+
#### uvx (Recommended)
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"mcpServers": {
|
|
33
|
+
"better-mem0": {
|
|
34
|
+
"command": "uvx",
|
|
35
|
+
"args": ["better-mem0-mcp@latest"],
|
|
36
|
+
"env": {
|
|
37
|
+
"DATABASE_URL": "postgresql://user:pass@xxx.neon.tech/neondb?sslmode=require",
|
|
38
|
+
"API_KEYS": "gemini:AIza..."
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Docker
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"mcpServers": {
|
|
50
|
+
"better-mem0": {
|
|
51
|
+
"command": "docker",
|
|
52
|
+
"args": ["run", "-i", "--rm", "-e", "DATABASE_URL", "-e", "API_KEYS", "n24q02m/better-mem0-mcp:latest"],
|
|
53
|
+
"env": {
|
|
54
|
+
"DATABASE_URL": "postgresql://...",
|
|
55
|
+
"API_KEYS": "gemini:AIza..."
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 3. Done!
|
|
63
|
+
|
|
64
|
+
Ask your AI: "Remember that I prefer dark mode and use FastAPI"
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Configuration
|
|
69
|
+
|
|
70
|
+
| Variable | Required | Description |
|
|
71
|
+
|----------|----------|-------------|
|
|
72
|
+
| `DATABASE_URL` | Yes | PostgreSQL with pgvector extension |
|
|
73
|
+
| `API_KEYS` | Yes | `provider:key` pairs, comma-separated |
|
|
74
|
+
| `LLM_MODELS` | No | Model fallback chain |
|
|
75
|
+
| `EMBEDDER_MODELS` | No | Embedding model chain |
|
|
76
|
+
|
|
77
|
+
### Supported Providers
|
|
78
|
+
|
|
79
|
+
`gemini`, `openai`, `anthropic`, `groq`, `deepseek`, `mistral`
|
|
80
|
+
|
|
81
|
+
### Examples
|
|
82
|
+
|
|
83
|
+
**Single provider:**
|
|
84
|
+
```bash
|
|
85
|
+
API_KEYS=gemini:AIza...
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Multi-key with fallback:**
|
|
89
|
+
```bash
|
|
90
|
+
API_KEYS=gemini:AIza-1,gemini:AIza-2,openai:sk-xxx
|
|
91
|
+
LLM_MODELS=gemini/gemini-3-flash-preview,openai/gpt-4o-mini
|
|
92
|
+
EMBEDDER_MODELS=gemini/gemini-embedding-001,openai/text-embedding-3-small
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Defaults
|
|
96
|
+
|
|
97
|
+
| Setting | Default |
|
|
98
|
+
|---------|---------|
|
|
99
|
+
| `LLM_MODELS` | `gemini/gemini-3-flash-preview` |
|
|
100
|
+
| `EMBEDDER_MODELS` | `gemini/gemini-embedding-001` |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Tools
|
|
105
|
+
|
|
106
|
+
| Tool | Description |
|
|
107
|
+
|------|-------------|
|
|
108
|
+
| `memory` | Memory operations: `add`, `search`, `list`, `delete` |
|
|
109
|
+
| `help` | Get full documentation for tools |
|
|
110
|
+
|
|
111
|
+
### Usage Examples
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{"action": "add", "content": "I prefer TypeScript over JavaScript"}
|
|
115
|
+
{"action": "search", "query": "programming preferences"}
|
|
116
|
+
{"action": "list"}
|
|
117
|
+
{"action": "delete", "memory_id": "abc123"}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Build from Source
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
git clone https://github.com/n24q02m/better-mem0-mcp
|
|
126
|
+
cd better-mem0-mcp
|
|
127
|
+
|
|
128
|
+
# Setup (requires mise: https://mise.jdx.dev/)
|
|
129
|
+
mise run setup
|
|
130
|
+
|
|
131
|
+
# Run
|
|
132
|
+
uv run better-mem0-mcp
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Requirements:** Python 3.13+
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Contributing
|
|
140
|
+
|
|
141
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
MIT - See [LICENSE](LICENSE)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
| Version | Supported |
|
|
6
|
+
| ------- | ------------------ |
|
|
7
|
+
| 1.x.x | :white_check_mark: |
|
|
8
|
+
| < 1.0 | :x: |
|
|
9
|
+
|
|
10
|
+
## Reporting a Vulnerability
|
|
11
|
+
|
|
12
|
+
If you discover a security vulnerability, please **DO NOT** create a public issue.
|
|
13
|
+
|
|
14
|
+
Instead, please email: **quangminh2402.dev@gmail.com**
|
|
15
|
+
|
|
16
|
+
Include:
|
|
17
|
+
|
|
18
|
+
1. Detailed description of the vulnerability
|
|
19
|
+
2. Steps to reproduce
|
|
20
|
+
3. Potential impact
|
|
21
|
+
4. Suggested fix (if any)
|
|
22
|
+
|
|
23
|
+
You will receive acknowledgment within 48 hours.
|
|
24
|
+
|
|
25
|
+
## Security Best Practices
|
|
26
|
+
|
|
27
|
+
When using better-mem0-mcp:
|
|
28
|
+
|
|
29
|
+
- **Never commit API keys** to version control
|
|
30
|
+
- Use environment variables or secure secret management
|
|
31
|
+
- Keep dependencies updated
|
|
32
|
+
- Use `sslmode=require` for production database connections
|
better_mem0_mcp-1.1.5/README.md
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# better-mem0-mcp
|
|
2
|
-
|
|
3
|
-
**Zero-setup** MCP Server for AI memory. Works with Neon/Supabase free tier.
|
|
4
|
-
|
|
5
|
-
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
|
|
7
|
-
## Quick Start
|
|
8
|
-
|
|
9
|
-
### 1. Get Prerequisites
|
|
10
|
-
|
|
11
|
-
- **Database**: [Neon](https://neon.tech) or [Supabase](https://supabase.com) (free tier)
|
|
12
|
-
- **API Key**: [Google AI Studio](https://aistudio.google.com/apikey) (free tier)
|
|
13
|
-
|
|
14
|
-
### 2. Add to mcp.json
|
|
15
|
-
|
|
16
|
-
#### uvx (Recommended)
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
{
|
|
20
|
-
"mcpServers": {
|
|
21
|
-
"better-mem0": {
|
|
22
|
-
"command": "uvx",
|
|
23
|
-
"args": ["better-mem0-mcp@latest"],
|
|
24
|
-
"env": {
|
|
25
|
-
"DATABASE_URL": "postgresql://user:pass@xxx.neon.tech/neondb?sslmode=require",
|
|
26
|
-
"API_KEYS": "gemini:AIza..."
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
#### Docker
|
|
34
|
-
|
|
35
|
-
```json
|
|
36
|
-
{
|
|
37
|
-
"mcpServers": {
|
|
38
|
-
"better-mem0": {
|
|
39
|
-
"command": "docker",
|
|
40
|
-
"args": ["run", "-i", "--rm", "-e", "DATABASE_URL", "-e", "API_KEYS", "n24q02m/better-mem0-mcp:latest"],
|
|
41
|
-
"env": {
|
|
42
|
-
"DATABASE_URL": "postgresql://...",
|
|
43
|
-
"API_KEYS": "gemini:AIza..."
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### 3. Done!
|
|
51
|
-
|
|
52
|
-
Ask Claude: "Remember that I prefer dark mode and use FastAPI"
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## Configuration
|
|
57
|
-
|
|
58
|
-
| Variable | Required | Description |
|
|
59
|
-
|----------|----------|-------------|
|
|
60
|
-
| `DATABASE_URL` | Yes | PostgreSQL connection string |
|
|
61
|
-
| `API_KEYS` | Yes | `provider:key,...` (multi-key per provider OK) |
|
|
62
|
-
| `LLM_MODELS` | No | `provider/model,...` (fallback chain) |
|
|
63
|
-
| `EMBEDDER_MODELS` | No | `provider/model,...` (fallback chain) |
|
|
64
|
-
|
|
65
|
-
### Examples
|
|
66
|
-
|
|
67
|
-
**Minimal (Gemini only):**
|
|
68
|
-
```
|
|
69
|
-
API_KEYS=gemini:AIza...
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
**Multi-key with fallback:**
|
|
73
|
-
```
|
|
74
|
-
API_KEYS=gemini:AIza-1,gemini:AIza-2,openai:sk-xxx
|
|
75
|
-
LLM_MODELS=gemini/gemini-2.5-flash,openai/gpt-4o-mini
|
|
76
|
-
EMBEDDER_MODELS=gemini/gemini-embedding-001,openai/text-embedding-3-small
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Defaults
|
|
80
|
-
|
|
81
|
-
| Setting | Default |
|
|
82
|
-
|---------|---------|
|
|
83
|
-
| `LLM_MODELS` | `gemini/gemini-2.5-flash` |
|
|
84
|
-
| `EMBEDDER_MODELS` | `gemini/gemini-embedding-001` |
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## Tools
|
|
89
|
-
|
|
90
|
-
| Tool | Description |
|
|
91
|
-
|------|-------------|
|
|
92
|
-
| `memory` | `action`: add, search, list, delete |
|
|
93
|
-
| `help` | Detailed documentation |
|
|
94
|
-
|
|
95
|
-
### Usage
|
|
96
|
-
|
|
97
|
-
```json
|
|
98
|
-
{"action": "add", "content": "I prefer TypeScript over JavaScript"}
|
|
99
|
-
{"action": "search", "query": "preferences"}
|
|
100
|
-
{"action": "list"}
|
|
101
|
-
{"action": "delete", "memory_id": "abc123"}
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Why better-mem0-mcp?
|
|
107
|
-
|
|
108
|
-
| Feature | Official mem0-mcp | better-mem0-mcp |
|
|
109
|
-
|---------|-------------------|-----------------|
|
|
110
|
-
| Storage | Mem0 Cloud | **Self-hosted PostgreSQL** |
|
|
111
|
-
| Graph Memory | No | **Yes (SQL-based)** |
|
|
112
|
-
| LLM Provider | OpenAI only | **Any (Gemini/OpenAI/Ollama/...)** |
|
|
113
|
-
| Fallback | No | **Yes (multi-key + multi-model)** |
|
|
114
|
-
| Setup | API Key | **DATABASE_URL + API_KEYS** |
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## License
|
|
119
|
-
|
|
120
|
-
MIT
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
| Version | Supported |
|
|
6
|
-
| ------- | ------------------ |
|
|
7
|
-
| 0.x.x | :white_check_mark: |
|
|
8
|
-
|
|
9
|
-
## Reporting a Vulnerability
|
|
10
|
-
|
|
11
|
-
If you discover a security vulnerability, please report it by:
|
|
12
|
-
|
|
13
|
-
1. **Do NOT** create a public GitHub issue
|
|
14
|
-
2. Email the maintainer directly or use GitHub's private vulnerability reporting
|
|
15
|
-
3. Include detailed steps to reproduce the issue
|
|
16
|
-
4. Allow reasonable time for a fix before public disclosure
|
|
17
|
-
|
|
18
|
-
We take security seriously and will respond promptly to valid reports.
|
|
19
|
-
|
|
20
|
-
## Security Best Practices
|
|
21
|
-
|
|
22
|
-
When using better-mem0-mcp:
|
|
23
|
-
|
|
24
|
-
- **Never commit API keys** to version control
|
|
25
|
-
- Use environment variables or secure secret management
|
|
26
|
-
- Keep dependencies updated
|
|
27
|
-
- Use `sslmode=require` for production database connections
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|