DB Metadata Extractor MCP logo

DB Metadata Extractor MCP

Extracts schema metadata from five database systems, saves it as local JSON, and supports filtered, paginated queries.

Install DB Metadata Extractor MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "db-metadata-extractor-mcp": {
      "command": "uvx",
      "args": [
        "db-metadata-extractor-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio db-metadata-extractor-mcp -- uvx db-metadata-extractor-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx db-metadata-extractor-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The db-metadata-extractor-mcp MCP server extracts schema metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle. Its extract_metadata tool writes tables, columns, keys, indexes, and constraints to a local JSON file, while query_metadata searches saved metadata by table or column name. Use it when an agent needs database structure without repeatedly querying the source database. It runs over stdio by default and can also use streamable HTTP.

Use cases

  • Extract a complete schema for an agent to inspect
  • Save database metadata as local JSON
  • Search saved metadata by table or column name
  • Limit extraction to selected schemas or tables
  • Browse large metadata results with pagination

Key features

  • Supports PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle
  • Extracts tables, columns, keys, indexes, and constraints
  • Saves metadata to local JSON files
  • Filters metadata by table or column substring
  • Provides paginated query results
  • Supports stdio and streamable HTTP transports

Tools2

What DB Metadata Extractor MCP lets your agent do. Expand a tool for its parameters.

Self-reported~29 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/27 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · db-metadata-extractor-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed2Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How DB Metadata Extractor MCP works

What db-metadata-extractor-mcp MCP server does

The db-metadata-extractor-mcp MCP server connects to PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle databases to collect structural information. The extraction includes schemas, tables, columns, primary keys, indexes, and constraints. Results are written to a local directory as JSON, so the captured metadata does not require a cloud storage service.

This is useful when an AI agent needs to inspect a database layout, find tables containing a particular field, or work from a saved schema snapshot. It can extract an entire database or limit the operation to a named schema or selected tables.

How it works

The server exposes two MCP tools. extract_metadata accepts the database type and output path, along with connection and scope parameters appropriate to the selected system. PostgreSQL and SQL Server connections can use host, port, database, username, and password values. Snowflake uses account, warehouse, role, and database settings. BigQuery uses a project ID and a base64-encoded service account JSON key. Oracle is supported as a database type, with the required connection details supplied to the tool.

After extraction, the tool returns the saved file path and summary counts such as the number of tables and columns. query_metadata reads one of these JSON files and returns matching table results. It supports substring filters for table and column names, plus page and page-size arguments for larger schemas. The db-metadata-extractor-mcp MCP server therefore separates collection from later lookup: extraction creates the local dataset, and queries reuse it.

Setup and configuration

Install the package from PyPI with pip install db-metadata-extractor-mcp, or clone the repository and install it in editable mode with pip install -e .. Python 3.8 or newer is required. Database-specific dependencies include psycopg2-binary for PostgreSQL, snowflake-connector-python for Snowflake, pyodbc and pymssql for SQL Server, google-cloud-bigquery for BigQuery, and oracledb for Oracle.

Run db-metadata-extractor-mcp to start the server in stdio mode. The documented Claude Desktop configuration starts that command with no arguments. For an HTTP connection, use --transport streamable-http and provide a port such as 3000.

Tools and capabilities

  • extract_metadata: Collects schema details and saves them as a local JSON file.
  • query_metadata: Searches an extracted JSON file by table-name or column-name substring.
  • Database selection for PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle.
  • Optional schema and table selection to reduce the extraction scope.
  • Pagination for browsing query results from large schemas.
  • Local output with source details, extraction time, schemas, tables, columns, and indexes.

Limitations and notes

The server needs valid database credentials, network access, and sufficient permissions. The documented minimum permissions include SELECT on tables, USAGE on schemas, and CONNECT on databases.

Output is stored on the local filesystem at the path supplied to extract_metadata. The tool requires a writable destination, and later queries must reference the resulting JSON file.

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 DB Metadata Extractor MCP

db-metadata-extractor-mcp is an MCP server that connects to PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle databases. Its main tools, extract_metadata and query_metadata, save schema details as local JSON and search previously extracted metadata by table or column name with pagination.

Install it from PyPI with `pip install db-metadata-extractor-mcp`. You can also clone the repository and run `pip install -e .`; Python 3.8 or newer is required, along with the connector dependency for the database you use.

Add `db-metadata-extractor-mcp` as the command for an MCP server entry in Claude Desktop's configuration, then restart Claude Desktop. The documented setup uses stdio mode, which is the default, and passes no command-line arguments.

Yes. Call `query_metadata` with the path to a metadata JSON file, then optionally provide a table-name filter, column-name filter, page number, and page size. Results contain paginated table matches from the previously saved extraction.

Limit the extraction by supplying a schema name or an array of table names. The README recommends extracting a smaller scope when large schemas cause timeouts, and `query_metadata` provides pagination for browsing saved results.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDB Metadata Extractor MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/db-metadata-extractor-mcp?style=directory)](https://allmcps.com/mcp/db-metadata-extractor-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/db-metadata-extractor-mcp"><img src="https://allmcps.com/api/badge/db-metadata-extractor-mcp?style=directory" alt="DB Metadata Extractor MCP on AllMCPs" /></a>