Combine extras with comma separation, e.g. `pip install 'pretensor[postgres,clustering]'`.
Connect Pretensor to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Combine extras with comma separation, e.g. pip install 'pretensor[postgres,clustering]'. The pretensor mcp server is what makes that connection.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
list_databases — List indexed database connections with table counts and stalenessschema — Inspect node labels, edge types, and available properties before writing Cypherquery — BM25 keyword search over table and entity metadata. Hybrid BM25 + cosine RRF rerank when [embeddings] is installed and tables carry vectorssemantic_search — Cosine ranking over indexed SchemaTable embeddings. Requires pretensor[embeddings]; returns a structured BM25-fallback envelope when the extra iscypher — Read-only Kuzu Cypher for one indexed database; mutating clauses are rejectedcontext — Full context for one physical table, including columns, joins, lineage, and cluster metadata. Optional include_similar arg surfaces cross-clustertraverse — Join paths between two physical tables. When ambiguous and tables carry embeddings, ranks tied paths by embedding similarityimpact — Downstream tables reachable from a table via FK and inferred-join edgesdetect_changes — Compare the live database schema to the last indexed snapshot without mutating the graphcompile_metric — Compile semantic-layer YAML into validated SQL for one indexed database. The error string includes a "did you mean: …" suggestion list when anvalidate_sql — Validate SQL against the indexed graph before executionpretensor index. Every database driver ships as an extra — PostgreSQL via pretensor[postgres], Snowflake via pretensor[snowflake], BigQuery via pretensor[bigquery].The server ships on PyPI as pretensor, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Pretensor's toolset — list_databases, schema, query and 8 more — is a fair guide to whether it matches your workflow. It is maintained by pretensor-ai; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| list_databases | List indexed database connections with table counts and staleness. |
| schema | Inspect node labels, edge types, and available properties before writing Cypher. |
| query | BM25 keyword search over table and entity metadata. Hybrid BM25 + cosine RRF rerank when [embeddings] is installed and tables carry vectors. |
| semantic_search | Cosine ranking over indexed SchemaTable embeddings. Requires pretensor[embeddings]; returns a structured BM25-fallback envelope when the extra is absent or no tables have been embedded. |
| cypher | Read-only Kuzu Cypher for one indexed database; mutating clauses are rejected. |
| context | Full context for one physical table, including columns, joins, lineage, and cluster metadata. Optional include_similar arg surfaces cross-cluster nearest neighbors when embeddings are present. |
| traverse | Join paths between two physical tables. When ambiguous and tables carry embeddings, ranks tied paths by embedding similarity. |
| impact | Downstream tables reachable from a table via FK and inferred-join edges. |
| detect_changes | Compare the live database schema to the last indexed snapshot without mutating the graph. |
| compile_metric | Compile semantic-layer YAML into validated SQL for one indexed database. The error string includes a "did you mean: …" suggestion list when an unresolved metric, table, or column name has close matches. |
| validate_sql | Validate SQL against the indexed graph before execution. |
{
"mcpServers": {
"pretensor": {
"command": "uvx",
"args": ["pretensor"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
pretensor index. Every database driver ships as an extra — PostgreSQL via pretensor[postgres], Snowflake via pretensor[snowflake], BigQuery via pretensor[bigquery].Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.