docs/DATABASE_CONFIGURATION.md
n8n-mcp uses SQLite for storing node documentation. Two adapters are available:
better-sqlite3 (Default in Docker)
sql.js (Fallback)
If using sql.js fallback, you can configure the save interval to balance between data safety and memory efficiency:
Environment Variable:
SQLJS_SAVE_INTERVAL_MS=5000 # Default: 5000ms (5 seconds)
Usage:
Docker Configuration:
{
"mcpServers": {
"n8n-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"-e", "SQLJS_SAVE_INTERVAL_MS=10000",
"ghcr.io/czlonkowski/n8n-mcp:latest"
]
}
}
}
docker-compose:
environment:
SQLJS_SAVE_INTERVAL_MS: "10000"