DataBook
DataBook
An AI-editable SQL database app powered by MCP. The MCP server is the app — its tool definitions encode the product decisions. The AI's capabilities become the feature set.
What is DataBook?
DataBook is a Model Context Protocol (MCP) server that gives AI assistants full control over a collection of SQLite databases. Instead of building a traditional CRUD UI, DataBook exposes database operations as MCP tools — letting any MCP-capable AI client (Claude, Cursor, etc.) act as the interface.
Tools
Database Management
Tool | Description |
| List all available databases |
| Choose which database to work with |
| Create a new empty database |
| Delete a database permanently |
Schema Management
Tool | Description |
| List all tables in the selected database |
| Show table schema and column definitions |
| Create a table with column definitions |
| Add, rename, drop columns, or rename the table |
| Delete a table and all its data |
Data CRUD
Tool | Description |
| Insert one or more rows |
| Update rows matching a WHERE condition |
| Delete rows matching a WHERE condition |
Query
Tool | Description |
| Execute any SQL statement and return results |
Query Pages (Views)
Tool | Description |
| Save a named query with a view type (table, kanban, calendar, etc.) |
| List all saved query pages for the current database |
| Rename, change query, or change view type |
| Remove a saved query page |
Storage
Each database is a separate
.dbSQLite file stored in~/.databook/(configurable viaDATABOOK_DIR)Query pages are stored in
~/.databook/.meta.db— a metadata SQLite database
Setup
Install
npm install
npm run buildRun
npm start
# or
node dist/index.jsConfigure data directory
DATABOOK_DIR=/path/to/data node dist/index.jsConnecting to Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"databook": {
"command": "node",
"args": ["/path/to/DataBook/dist/index.js"],
"env": {
"DATABOOK_DIR": "/path/to/your/data"
}
}
}
}Or using npx after publishing:
{
"mcpServers": {
"databook": {
"command": "npx",
"args": ["databook"]
}
}
}Architecture
DataBook MCP Server (TypeScript)
│
├── DatabaseManager # Core logic layer
│ ├── SQLite files # One .db file per database (via better-sqlite3)
│ └── .meta.db # Query pages metadata
│
└── McpServer (stdio) # MCP transport
└── 17 tools # The complete feature setDevelopment
npm run dev # Watch mode (recompiles on change)
npm run build # Production build