Pretensor MCP Server

Combine extras with comma separation, e.g. `pip install 'pretensor[postgres,clustering]'`.

Local serverstdioPython

What is the Pretensor MCP Server?

Combine extras with comma separation, e.g. pip install 'pretensor[postgres,clustering]'.

Credentials and setup notes

  • Python 3.11 or 3.12 (3.13 not yet tested). - A reachable database for pretensor index. Every database driver ships as an extra — PostgreSQL via pretensor[postgres], Snowflake via pretensor[snowflake], BigQuery via pretensor[bigquery].

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_databasesList indexed database connections with table counts and staleness.
schemaInspect node labels, edge types, and available properties before writing Cypher.
queryBM25 keyword search over table and entity metadata. Hybrid BM25 + cosine RRF rerank when [embeddings] is installed and tables carry vectors.
semantic_searchCosine 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.
cypherRead-only Kuzu Cypher for one indexed database; mutating clauses are rejected.
contextFull 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.
traverseJoin paths between two physical tables. When ambiguous and tables carry embeddings, ranks tied paths by embedding similarity.
impactDownstream tables reachable from a table via FK and inferred-join edges.
detect_changesCompare the live database schema to the last indexed snapshot without mutating the graph.
compile_metricCompile 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_sqlValidate SQL against the indexed graph before execution.

How to install the Pretensor MCP Server

{
  "mcpServers": {
    "pretensor": {
      "command": "uvx",
      "args": ["pretensor"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.11 or 3.12 (3.13 not yet tested). - A reachable database for pretensor index. Every database driver ships as an extra — PostgreSQL via pretensor[postgres], Snowflake via pretensor[snowflake], BigQuery via pretensor[bigquery].

Example prompts to try

  • “Use Pretensor to list databases.”
  • “Use Pretensor to schema.”
  • “Use Pretensor to query.”

Frequently asked questions

Combine extras with comma separation, e.g. `pip install 'pretensor[postgres,clustering]'`. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.