Skip to content
InfratoApp
InfratoApp / Resources / MCP servers / th-memory-mcp

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

Reaches
sqlite
Credential
○ none found

Maintenance

Stars
3
State
listed
Licence
MIT
From the repository

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

th-memory-mcp compared with the closest alternatives, by services reached, credentials, stars, last update and licence
ServerReachesNeedsStarsLast updateLicence
th-memory-mcp (this page)sqliteNone listed32026-10-23MIT
dbhubmysql, postgres, sqlite(1 shared)None listed3,7022026-10-21MIT
mcp-alchemymysql, postgresql, sqlite(1 shared)None listed4222026-10-15MPL-2.0
knowlsqlite(1 shared)None listed1142026-10-21Apache-2.0
ai-memory-mcpsqlite, xai(1 shared)AI_MEMORY_LLM_API_KEY, XAI_API_KEY542026-10-22Apache-2.0
saga-mcpsqlite(1 shared)None listed402026-10-07MIT

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

All databases entries →

Learn this on Infrato