Retrieved article excerpt
Open article · Retrieved 2026-11-21T21:21:41.177729+00:00
# Where your agents keep what they learn
databasedmcp gives Claude Code, Codex and other MCP agents private SQLite databases. They write down what they work out, the next session reads it back, and you can open the drawer and look.
[Continue with Google](https://databasedmcp.com/auth/google)
or with a link we email you
Google and email reach the same account when the address matches.
Free to start, no card; paid plans from €5 a month when you need more.
"Remember we picked Postgres for billing."
1. decisions
1 rowwritten just now
2. notes
48 rowswritten 2 hours ago
3. bug-triage
213 rowsdormant
Your agent decides what's worth keeping and files it. Each database gets its own colour, and turns grey when nothing has written to it for 14 days.
## One entry in your MCP config
Create an API key on the website, put it in an environment variable, and point your agent at the server. There's nothing to install and nothing to run.
Claude Code: .mcp.json
```
{
"mcpServers": {
"databased": {
"type": "http",
"url": "https://databasedmcp.com/mcp",
"headers": {
"Authorization": "Bearer ${DATABASED_API_KEY}"
}
}
}
}
```
Codex
~/.codex/config.toml
```
[mcp_servers.databased]
url = "https://databasedmcp.com/mcp"
bearer_token_env_var = "DATABASED_API_KEY"
```
opencode
`"oauth": false` makes opencode use the key instead of asking you to sign in.
opencode.json
```
{
"mcp": {
"databased": {
"type": "remote",
"url": "https://databasedmcp.com/mcp",
"oauth": false,
"headers": {
"Authorization": "Bearer {env:DATABASED_API_KEY}"
}
}
}
}
```
Any other MCP client that speaks streamable HTTP and can send a bearer token works the same way.
No key needed in apps with MCP sign-in, like Claude: add `https://databasedmcp.com/mcp` as a custom connector, or run `claude mcp add --transport http databased https://databasedmcp.com/mcp`, and sign in in your browser when it asks.
## Then say what to keep
You don't design a schema. Tell your agent what's worth keeping and it picks a database, or creates one from a template, and reads the database's guide to learn how the other agents use it.
"Keep track of what you learn about this repo in databasedmcp, and check it before you start next time."
1. **list\_databases** → nothing that fits yet
2. **create\_database** { name: "acme-api", template: "project" }
3. **get\_database** → schema, and a guide: how to claim tasks, record decisions, hand off
4. **execute** INSERT INTO memory (kind, title, author) VALUES ('decision', 'Postgres for billing, not SQLite', 'worker-7f3a')
Add one line to CLAUDE.md naming the database, and the next session, or another agent running beside this one, starts with `get_database` and reads the same rows.
## Rows you can read
It's plain SQLite. This is the memory table of the project template, a day into a repo:
| id | kind | title | author | created\_at |
| --- | --- | --- | --- | --- |
| 14 | decision | Postgres for billing, not SQLite | worker-7f3a | 2026-10-29 09:12:40 |
| 15 | convention | Run npm test before every commit | lead-01c2 | 2026-10-29 09:20:03 |
| 16 | finding | Stripe webhooks can arrive out of order | worker-7f3a | 2026-10-29 11:47:18 |
| 17 | question | Keep the v1 API until December? | worker-b9e0 | 2026-10-29 14:05:51 |
| 18 | handoff | Webhook retries half done, see task 9 | worker-b9e0 | 2026-10-29 17:33:26 |
You can open every database on the website, page through its rows and run read-only SQL. Templates start you off: `project` for agents sharing a repo, `notes` for a searchable knowledge base, `log` for runs and evals, `learnings` for errors and the fixes that worked. Agents can change any of them afterwards.
## Two agents, one task, one winner
When several agents share a repo, the project template gives them a task board. Claiming a task is one `UPDATE` with `expect_changes: 1`. If another agent got there first, the write changes nothing and fails loudly, so the second agent moves on instead of doing the same work twice.
worker-b9e0
```
execute UPDATE tasks SET status = 'doing', owner = 'worker-b9e0' … WHERE id = 9 …
expect_changes: 1
[conflict] Expected 1 changed row, got 0, so nothing was applied. The rows didn't match the WHERE clause: re-read them before retrying.
```
Tasks also carry leases, dependencies and the paths each one writes, so two agents don't edit the same files.
## Secrets bounce off
Agents are told never to store credentials, and the server checks every write anyway. A write containing an AWS, GitHub, Stripe, Slack, Google, OpenAI or Anthropic key, a private key, a JWT or a password in a URL is rejected before it reaches the database, and nothing of it is logged. The agent gets this back and stores where the secret lives instead:
error
```
[secret_detected] params[1] looks like a secret (Stripe secret key). Secrets must not be stored in databasedmcp; store a reference instead (e.g. the name of the environment variable that holds it).
```
It catches known formats, not every secret, so it's a guardrail rather than a guarantee.
## Plans
Every plan has every tool. Limits are for your whole account, shared across its databases. Starter and Pro are billed monthly in euros; Stripe shows your own currency at checkout. Pro is best for teams running agent swarms.
| | Free | Starter | Pro |
| --- | --- | --- | --- |
| Price | €0 | €5 a month | €20 a month |
| Tool calls a week | 100 | 1,000 | 10,000 |
| Storage | 1 MB | 100 MB | 1 GB |
| Databases | 10 | 100 | 1,000 |
| Largest value | 8 KB | 1 MB | 10 MB |
| Connected agents | 1 | 3 | 1,000 |
| People | 1 | 3 | 100 |
Tool calls start again from zero every Monday. Near a limit, your agents are told so they can tell you; at a limit, writes stop with an error that names it. Reads and deletes keep working, and there are no overage charges.
[Get started](https://databasedmcp.com/#start)
## Questions
### Is there a free plan?
Yes. Every account starts on Free: 100 tool calls a week and 1 MB of storage, enough to see your agents remember things across sessions. Starter is €5 a month and Pro €20 when you need more.
### Where is my data?
On our own server in the EU, reached through Cloudflare. Each database is its own SQLite file there; accounts and keys are in Cloudflare D1. We don't offer a choice of region yet.
### What happens if I cancel?
Your account goes back to Free. Nothing is deleted: your agents can still read and delete their databases, and they can write again once the account is within Free's limits.
### Who can see my databases?
The people you invite to your account and the agents using its API keys. Everyone on an account sees all of its databases. Keys are shown once, stored hashed, and stop working on the next call after you delete them.
## Give your agents somewhere to write
[Continue with Google](https://databasedmcp.com/auth/google)
or with a link we email you
Google and email reach the same account when the address matches.
[Articles](https://databasedmcp.com/articles) · [Docs](https://databasedmcp.com/docs) · [Privacy](https://databasedmcp.com/privacy) · [email protected]