Extract database schema metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, Oracle.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"db-metadata-extractor": {
"env": {},
"args": [],
"command": "db-metadata-extractor-mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
mcp-name: io.github.Optisol-Business/db-metadata-extractor-mcp
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'db-metadata-extractor-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked db-metadata-extractor-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in data
Query and manage PostgreSQL databases directly from AI assistants
Manage Supabase projects — databases, auth, storage, and edge functions
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
MongoDB Model Context Protocol Server
MCP Security Weekly
Get CVE alerts and security updates for io.github.Optisol-Business/db-metadata-extractor-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
pip install db-metadata-extractor-mcp
git clone https://github.com/Optisol-Business/db-metadata-extractor-mcp.git
cd db-metadata-extractor-mcp
pip install -e .
db-metadata-extractor-mcp
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):
{
"mcpServers": {
"db-metadata-extractor": {
"command": "db-metadata-extractor-mcp",
"args": [],
"env": {}
}
}
}
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:
# Via Claude
"Extract all tables from my dev PostgreSQL database at localhost:5432"
Parameters Claude will use:
{
"db_type": "postgresql",
"host": "localhost",
"port": 5432,
"database_name": "dev_db",
"username": "postgres",
"password": "your_password",
"output_path": "/tmp/db_metadata"
}
"Extract schema from Snowflake account XYZ123"
Parameters:
{
"db_type": "snowflake",
"account": "XYZ123",
"username": "your_user",
"password": "your_password",
"warehouse": "COMPUTE_WH",
"role_name": "ANALYST",
"database_name": "PRODUCTION",
"output_path": "C:/metadata"
}
"Extract metadata from BigQuery project my-project-123"
Parameters:
{
"db_type": "bigquery",
"project_id": "my-project-123",
"service_account_key": "base64_encoded_json_key",
"output_path": "/tmp/bq_metadata"
}
Start with HTTP transport:
d
... [View full README on GitHub](https://github.com/Optisol-Business/db-metadata-extractor-mcp#readme)