TinyDB MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TinyDB MCP Serversearch for users with status active"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tinydb-emcipi

This repo is docker-friendly – an MCP wrapper around TinyDB that gives chatbots long-term memory without leaving your laptop.
Tiny MCP server backed by TinyDB — drop-in long-term memory for chatbots and small-context LLM apps.
Why?
Keeping structured facts in the prompt is wasteful. With tinydb-emcipi an agent can store, search and mutate JSON records through MCP tool calls, loading only what it needs.
Zero dependencies – TinyDB stores JSON on disk.
Schema-first – every record validated; the schema itself is queryable.
Opinionated tools – list DBs, switch DB, introspect schema, CRUD, search.
Docker-friendly – run locally or in CI with a single
docker compose up.
Related MCP server: CoreMemory-MCP
Quick Start
Native
pip install -r requirements.txt
python -m main # MCP endpoint on http://localhost:8000/mcpDocker Compose
docker compose up # builds dependencies at first runThe compose file mounts the repo into /app inside a python:3.12-slim container and starts the same command.
Available MCP Tools (summary)
Category | Tool | Purpose |
Discovery |
| create new DB (optionally with initial schema) |
| see all TinyDB files | |
| set the DB every other tool will use | |
| schema, sample records, field list | |
Records |
| field-value query, returns schema too |
| dump every record | |
| create / modify validated records | |
Schema |
| create / update JSON Schema for a DB |
Project Structure (top-level)
config/ configuration & sample
logs/ runtime logs
sandbox/db/ TinyDB JSON databases
utils/ code modules (db, schema, mcp wrappers)
main.py entry-point
docker-compose.yml
requirements.txtContributing
Pull requests are welcome! Please:
Follow PEP 8 and keep imports sorted.
Add or update unit tests.
Keep the README and doc-strings concise and useful.
Example MCP Prompt
A ready-to-use JSON request lives at scratchpad/mcp.json.sample showing how to invoke these tools from an MCP client.
© 2025 • MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
- KogniteOAuthdev.kognite
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- FlicenseAqualityDmaintenanceA cross-platform MCP server providing persistent storage for AI assistants to store, retrieve, and manage memories across conversations. It features keyword and tag-based search capabilities using a local JSON file for data persistence.6-
- AlicenseNot gradedqualityCmaintenanceProvides a local, persistent long-term memory service for MCP-compatible AI agents, enabling them to store, search, and recall information across sessions.1GPL 3.0
- AlicenseNot gradedqualityCmaintenancePersistent memory MCP server for AI agents that stores, recalls, and searches conversation history, key-value context, and long-term entries across sessions with semantic search and FIFO queues.48 npm1-
- FlicenseNot gradedqualityCmaintenanceA minimal MCP server that stores JSON documents in TinyDB, exposing tools to insert, retrieve, and delete all data.-