Grain
Query supported databases and inspect schemas from AI agents through Grain’s VS Code MCP integration.
Install Grain
Run the project’s own setup commands, in order.
Setup steps from the project
Grain installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: grain.tools
curl -fsSL https://grain.tools/install.sh | sh
Overview
Use cases
- Query production data from an AI coding client in read-only mode
- Inspect database schemas while investigating an application
- Analyze local CSV or Parquet files with DuckDB
- Review agent-generated SQL in the VS Code results panel
- Export complete query results for downstream analysis
Key features
- MCP access to configured database connections
- Read-only agent safe mode
- Schema inspection and SQL execution
- Support for nine database and query systems
- Visible agent query results in VS Code
- CSV, TSV, and JSON result export
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Grain works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Grain
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/grain)<a href="https://allmcps.com/mcp/grain"><img src="https://allmcps.com/api/badge/grain?style=directory" alt="Grain on AllMCPs" /></a>