MCP & Connectors
How do you connect Claude to SQLite via MCP?
QUICK ANSWER
To connect Claude to SQLite, add the sqlite MCP server definition in the configuration file, specifying the absolute filepath to your SQLite database file.
Configuration
Add the server to your claude_desktop_config.json config file:
{
"mcpServers": {
"sqlite-db": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sqlite",
"--db",
"/absolute/path/to/your/database.sqlite"
]
}
}
}
Make sure Claude has read and write permissions to both the directory and the database file.
Verified against: SQLite MCP Server v0.3.0