th-memory-mcp
th-memory-mcp is an MCP server, listed under databases. It reaches sqlite. Its repository has 3 GitHub stars and is licensed under MIT; we last read it on 2026-10-25.
Serves long-term memory for OpenCode and other systems by storing preferences, lessons, and usage history locally in an SQLite file, enabling context-based adaptation without external APIs.
Install
Read from th-memory-mcp’s own README, close to verbatim -- not written by us, and not guessed.
npx th-memory-mcp
What it reaches, and what it needs
Maintenance
Long-term memory MCP server for OpenCode and other harnesses — stores preferences, lessons, and usage history in a single local SQLite file (100% local, no external API) so the AI can "remember and adapt" to the user through context-based learning.
th-memory-mcp compared with similar servers
| Server | Reaches | Needs | Stars | Last update | Licence |
|---|---|---|---|---|---|
| th-memory-mcp (this page) | sqlite | None listed | 3 | 2026-10-23 | MIT |
| dbhub | mysql, postgres, sqlite(1 shared) | None listed | 3,702 | 2026-10-21 | MIT |
| mcp-alchemy | mysql, postgresql, sqlite(1 shared) | None listed | 422 | 2026-10-15 | MPL-2.0 |
| knowl | sqlite(1 shared) | None listed | 114 | 2026-10-21 | Apache-2.0 |
| ai-memory-mcp | sqlite, xai(1 shared) | AI_MEMORY_LLM_API_KEY, XAI_API_KEY | 54 | 2026-10-22 | Apache-2.0 |
| saga-mcp | sqlite(1 shared) | None listed | 40 | 2026-10-07 | MIT |
Ranked by services in common with th-memory-mcp, then by stars. Figures are from each repository when we last read it.
Common questions about th-memory-mcp
- What does th-memory-mcp do?
- Serves long-term memory for OpenCode and other systems by storing preferences, lessons, and usage history locally in an SQLite file, enabling context-based adaptation without external APIs.
- How do I install th-memory-mcp?
- Its own README gives this command: npx th-memory-mcp. Run it where your MCP client can launch the server, and check the README for any settings it asks for.
- What does th-memory-mcp connect to, and what does it need?
- It reaches sqlite.
- Is th-memory-mcp official and is it maintained?
- We found nothing naming it as a vendor’s official server. Its repository has 3 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-23.
- What licence does th-memory-mcp use?
- The repository declares the MIT licence.
More MCP servers for databases
- CodeGraphContext4,360 stars
- dbhub3,702 stars
- mcp-server-mysql2,173 stars
- mysql_mcp_server1,402 stars
- server874 stars
- supabase-mcp-server833 stars