Analytics tools for Humans and Agents
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add grain-sql --env GRAIN_CONNECTIONS='<GRAIN_CONNECTIONS>' -- npx -y grain-tools~/.codex/config.toml
[mcp_servers.grain-sql]
command = "npx"
args = ["-y", "grain-tools"]
env = { GRAIN_CONNECTIONS = "<GRAIN_CONNECTIONS>" }
# codex mcp add grain-sql --env GRAIN_CONNECTIONS='<GRAIN_CONNECTIONS>' -- npx -y grain-tools~/.cursor/mcp.json
{
"mcpServers": {
"grain-sql": {
"command": "npx",
"args": [
"-y",
"grain-tools"
],
"env": {
"GRAIN_CONNECTIONS": "<GRAIN_CONNECTIONS>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"grain-sql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"grain-tools"
],
"env": {
"GRAIN_CONNECTIONS": "<GRAIN_CONNECTIONS>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"grain-sql": {
"command": "npx",
"args": [
"-y",
"grain-tools"
],
"env": {
"GRAIN_CONNECTIONS": "<GRAIN_CONNECTIONS>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"grain-sql": {
"command": "npx",
"args": [
"-y",
"grain-tools"
],
"env": {
"GRAIN_CONNECTIONS": "<GRAIN_CONNECTIONS>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"grain-sql": {
"command": "npx",
"args": [
"-y",
"grain-tools"
],
"env": {
"GRAIN_CONNECTIONS": "<GRAIN_CONNECTIONS>"
}
}
}
}Environment variables
GRAIN_CONNECTIONS
Replace the placeholders with your own credentials and keep them out of version control.