Skip to main content
Glama

Database MCP

by swoiow
gateway.py336 B
from fastapi import FastAPI from server_mysql import mcp as mysql_mcp from server_pgsql import mcp as pgsql_mcp app = FastAPI(title="DB-MCP-Gateway") app.mount("/mysql", mysql_mcp.app) app.mount("/pgsql", pgsql_mcp.app) @app.get("/") async def root() -> dict: return {"message": "DB-MCP gateway. Use /mysql or /pgsql endpoints."}

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/swoiow/database_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server