Read the real schema.
Start with the tables, columns and indexes that actually exist. Give the agent context before it writes SQL.
describe_schema_toolAnumana is an open-source MCP server for coding agents and developers who write SQL and vector searches. Inspect database query plans and estimated cost before execution.
Anumana reads the planner’s estimates, surfaces expensive patterns, and helps your agent refine its query. EXPLAIN only. The query stays unexecuted.
SELECT *
FROM orders
WHERE customer_id = 42;A sequential scan can do a lot of work to find a few matching rows.
SEQ_SCAN_LARGE01 / THE FEEDBACK LOOP
The agent writes the query. Anumana brings the database’s own planning signals into the conversation.
Start with the tables, columns and indexes that actually exist. Give the agent context before it writes SQL.
describe_schema_toolInspect estimated work, scan strategy and risk. Catch large scans, excessive top-k and unbounded results.
preflight_queryReview proposed changes, preserve the intended results, and check the candidate again before recommending it.
suggest_query · rewrite_query02 / WHAT THE AGENT SEES
A query can look small and still ask the database to do something expensive.
SELECT *
FROM orders
WHERE customer_id = 42;A customer lookup without a supporting index.
The planner may choose sequential access when no suitable index serves this filter. Check the scan estimate and selectivity before proposing an index.
SEQ_SCAN_LARGESELECT_STAR_WIDEUNBOUNDED_RESULTNext: inspect the plan, project required columns, and review index options.
Example scenarios, not live database results. This page sends no SQL to a database.
03 / CAPABILITY + WORKFLOW
The MCP provides the tools. The skill teaches the agent when to reach for them, how to interpret the findings, and when a rewrite changes the answer.
Explore AgensiAnumana’s marketplace listing is coming soon.
This link opens the Agensi marketplace.
Schema-first workflowGround every candidate in real tables and indexes.
Bounded refinementCheck, refine and recheck, without an endless loop.
Semantic guardrailsReview LIMIT, projection and recall trade-offs.
Setup includedEngine profiles, readiness states, templates and test checklists.
THE MCPConnects the agent to Anumana’s planner tools.
THE SKILLMakes using those tools a repeatable workflow.
THE RESULTBetter-informed query decisions before execution.
04 / GET CONNECTED
Start with the free MCP server. Add the skill when available. No hosted database service is included or required.
Install uv, then merge this template into your agent’s MCP configuration. It launches Anumana locally using uvx.
Replace the DSN placeholder locally with your own read-only PostgreSQL connection. Keep credentials out of source control.
Python 3.10+. The first launch downloads the pinned PyPI package. Clients using another config format need the same command, arguments and environment settings.
{
"mcpServers": {
"anumana": {
"command": "uvx",
"args": ["anumana-mcp==0.2.1"],
"env": {
"ANUMANA_DSN": "REPLACE_WITH_READ_ONLY_POSTGRES_DSN",
"ANUMANA_ENGINE": "postgres"
}
}
}
}Once you have the skill package, keep all its supporting files together. Installing a skill does not register the MCP server.
When the Anumana listing is live, get it through Agensi and follow its installation flow. The package contains SKILL.md, setup instructions, engine profiles, templates and test checklists.
For a local-folder installation, extract the package into a folder named anumana-query-preflight in the client’s skill directory.
.claude/skills/anumana-query-preflight/SKILL.mdClient skill documentation ↗Check that Anumana’s tools are available, then ask your agent to use the skill for your next query. Start offline if you don’t want to connect a database.
Use the anumana-query-preflight skill to review this query before execution. Inspect the schema first, check estimated cost, and explain any risks. Preserve the intended results and do not execute the query.
The skill includes profiles for all 12 adapter families and every readiness state. Use connected runners for live/provisional checks; use preparation mode for unwired engines. The MCP works independently of the skill.
Give your agent this DDL and query, then ask it to call preflight_schema_only. Expect heuristic findings, not live row counts or measured savings.
DDL: CREATE TABLE orders (
id bigint PRIMARY KEY,
customer_id bigint,
total numeric
);
SQL: SELECT * FROM orders;05 / FIND YOUR DATABASE
All 12 adapter families are listed below. Check the connection and testing columns before choosing your setup.
Development-checkout status, not a guarantee of support in published v0.2.1. Connected means a server connection path exists. Live-tested means real-engine evidence is recorded for tested paths. Not wired means the adapter cannot yet be called live through the MCP server.
12 of 12 database families
| Database | Query format | Cost / access signal | Adapter | MCP runner | Live tests |
|---|---|---|---|---|---|
| PostgreSQLRelational SQL | SQL | EXPLAIN JSON | Implemented | Connected | Live-tested |
| pgvectorVector / RAG | SQL | PostgreSQL EXPLAIN + vector flags | Implemented | Connected | Pending |
| SQLiteEmbedded SQL | SQL | EXPLAIN QUERY PLAN | Implemented | Connected | Live-tested |
| MySQL / MariaDBRelational SQL | SQL | EXPLAIN FORMAT=JSON | Implemented | Connected | Pending |
| MongoDBDocument | JSON find request | explain with queryPlanner verbosity | Implemented | Connected | Pending |
| DynamoDBKey-value / serverless | JSON Query/Scan request | Request-shape rules; metadata discovery | Implemented | Connected | Pending |
| Amazon RedshiftMPP warehouse | SQL | Text EXPLAIN | Implemented | Connected | Pending |
| Google BigQueryServerless warehouse | SQL | Dry-run byte estimates (adapter contract) | Implemented | Not wired | Pending |
| SnowflakeCloud warehouse | SQL | EXPLAIN USING JSON (adapter contract) | Implemented | Not wired | Pending |
| ClickHouseColumnar OLAP | SQL | EXPLAIN ESTIMATE (adapter contract) | Implemented | Not wired | Pending |
| FalkorDBProperty graph / Cypher | Cypher | GRAPH.EXPLAIN (adapter contract) | Implemented | Not wired | Pending |
| Cassandra / ScyllaDBWide-column / CQL | CQL + actual key schema | Partition-key request-shape rules | Implemented | Not wired | Pending |
No matching database. Try another name or show all engines.
The skill covers all 12. It includes native-format workflows, setup for connected runners, and preparation guides for adapters awaiting live wiring. Prepared guidance does not activate a missing integration.
No database connection? Use the generic SQL DDL checker for heuristic SQL findings. JSON requests, Cypher and CQL use their own prepared review workflows.
Not listed? Plain Redis and managed vector APIs such as Pinecone have no Anumana adapter in this checkout. See engine details ↗
A FEW GOOD QUESTIONS
Useful estimates.
Clear boundaries.
The SQL preflight tools ask the planner with EXPLAIN, never EXPLAIN ANALYZE. Anumana does not provide a query-execution tool. Live setup still requires access to your database for planning and schema discovery.
The MCP provides capabilities. The skill supplies a consistent workflow: inspect schema, check the candidate, review caveats, then refine. The server can be used without the skill; the skill needs access to the server’s tools for live planner checks.
For PostgreSQL, cost is the planner’s unitless estimate. It is not milliseconds or dollars. Offline checks are heuristic. Replanning can compare estimates, but cannot guarantee runtime or prove two queries return the same result.
Any paid listing covers the packaged skill workflow and setup resources. The Anumana MCP server remains free and MIT licensed. Pricing will appear on the marketplace listing when it is published; no hosted service or exclusive server feature is included.
The setup template pins server version 0.2.1. Upgrading requires a configuration change. Locally installed skill files also need updating; marketplace-delivered updates depend on Agensi’s installation and update flow.