Extract database schema metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, Oracle.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
mcp-name: io.github.Optisol-Business/db-metadata-extractor-mcp
A Model Context Protocol (MCP) server that extracts and queries database schema metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle databases.
The server starts in stdio mode by default and listens for MCP client connections.
Add to ~/.config/Claude/claude_desktop_config.json (macOS/Linux) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop.
Tell Claude:
Extract metadata from my PostgreSQL database and save it to
/tmp/output
Claude will use the server's tools to extract and query your database schema.
extract_metadataExtracts complete schema metadata from a database.
Parameters:
db_type (required): postgresql, snowflake, sqlserver, bigquery, oracleoutput_path (required): Local directory for JSON outputdatabase_name: Database/schema namehost: Database host (not needed for BigQuery/Snowflake)port: Database portusername: Database userpassword: Database passwordschema_name: Specific schema (optional)tables: Array of table names to extract (optional)account: Snowflake account IDwarehouse: Snowflake warehouserole_name: Snowflake roleproject_id: BigQuery project IDservice_account_key: BigQuery service account JSON (base64 encoded)Returns:
query_metadataQuery previously extracted metadata.
Parameters:
filepath (required): Path to metadata JSON filetable_name: Filter by table name (substring match)field_name: Filter by column name (substring match)page: Page number (default: 1)page_size: Results per page (default: 20)Returns:
Parameters Claude will use:
Parameters:
Parameters:
Start with HTTP transport:
The extracted metadata is saved as a JSON file with structure:
psycopg2-binarysnowflake-connector-pythonpyodbc, pymssqlgoogle-cloud-bigqueryoracledbProblem: "Unable to connect to database"
Solution: Verify credentials and network access:
Problem: "Access denied" or "insufficient permissions"
Solution: Ensure database user has:
SELECT on tablesUSAGE on schemasCONNECT on databasesProblem: Extraction times out on large databases
Solution: Extract specific schema/tables:
MIT License - See LICENSE file
Contributions welcome! Please:
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/db-metadata-extractor-mcp)<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>