Skip to main content
Glama
dixitayush
by dixitayush

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTYesPostgreSQL host
DB_NAMEYesPostgreSQL database name
DB_PORTNoPostgreSQL port5432
DB_USERYesPostgreSQL user
API_HOSTNoAPI server host0.0.0.0
API_PORTNoAPI server port3000
API_TYPENoAPI type: rest, graphql, or bothrest
DB_PASSWORDYesPostgreSQL password
MERMAID_DIAGRAM_PATHYesPath to the Mermaid ER diagram file

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
parse_er_diagramB

Parse a Mermaid ER diagram and extract the complete database schema including entities, attributes, and relationships.

list_entitiesC

List all entities (tables) in the ER diagram with their names and aliases.

get_entity_detailsA

Get detailed information about a specific entity including all its attributes, types, and keys (PK, FK, UK).

get_relationshipsB

Get all relationships between entities in the ER diagram with cardinality information.

validate_diagramB

Validate a Mermaid ER diagram for syntax errors and structural issues.

test_connectionA

Test the PostgreSQL database connection. Returns success or error message.

generate_sqlA

Generate SQL DDL statements from the ER diagram without executing them. Useful for reviewing the SQL before creating tables.

create_schemaA

Create PostgreSQL tables from the ER diagram. This will execute DDL statements to create tables and foreign key constraints.

drop_schemaA

Drop all tables defined in the ER diagram. WARNING: This will delete all data!

start_api_serverA

Start the REST/GraphQL API server for the entities in the ER diagram.

stop_api_serverB

Stop the running API server.

get_api_endpointsB

Get information about the running API server and its endpoints.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/dixitayush/mcp-api'

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