# memory-libsql MCP server

> Stores persistent entities, relations, and observations in a local or remote libSQL database and lets an AI client search them by relevance.

- Repository: https://github.com/spences10/mcp-memory-libsql
- Page: https://hostedmcp.org/servers/spences10/mcp-memory-libsql
- Transport: —
- Stars: 87
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LIBSQL_AUTH_TOKEN` | no | no |  |
| `LIBSQL_URL` | no | no |  |

## FAQ

### Where does mcp-memory-libsql store its data?

It stores data in a libSQL database, which can be a local SQLite file or a remote libSQL/Turso database. By default it uses file:/memory-tool.db in the current directory.

### How do I connect to a remote Turso database?

Set LIBSQL_URL to your libsql:// URL and provide LIBSQL_AUTH_TOKEN with your auth token.

### What environment variable configures the database URL?

The LIBSQL_URL environment variable sets the database location for local or remote libSQL databases.

### What operations does the server support on entities and relations?

It can create, update, delete, and search entities, manage observations, and create, delete, or query relations between entities.

### How does text search rank results?

Search results are ranked by relevance with entity name ranked above type and observations, and fuzzy matching is supported.
