melihbirim/csvql
Run read-only SQL on CSV files in place and expose it to AI agents via MCP.
What it solves
Without it, agents must import data into a database or upload files to the model, moving the data and flooding the context.
- Read-only SQL by construction
- No network code, sandboxed roots
- Bounded MCP output (~100 rows)
Works with
- claude-desktop
- vscode
- cli
Install
pip install csvql-query # Python: csvql.query(), .query_df(), .query_csv() → docs/PYTHON.md claude mcp add Copy-ready config
{
"mcpServers": {
"csvql": {
"command": "/usr/local/bin/csvql",
"args": [
"--mcp",
"--root",
"/data"
]
}
}
} Security flags
- Needs API key: Not stated
- Runs locally: Yes
- Network access: Yes
- Needs root: Yes
Maintenance
| Last commit | 2026-12-06(0d) |
|---|---|
| Stars | 32 |
| Open issues | 22 |
| License | MIT |
| Archived | No |
| Data fetched | 2026-12-06 |
Source excerpt
Verbatim README excerpt, unedited, so you can check the summary above.
runs `SELECT` on CSV files where they sit: no import, no ingest, no server.