Skip to main content
Glama

MCP-MongoDB-MySQL-Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTNoMySQL database host
DB_USERNoMySQL database user
DB_DATABASENoMySQL database name
DB_PASSWORDNoMySQL database password
MONGODB_URINoMongoDB connection URI (e.g. mongodb://user:password@host:27017/database)
DATABASE_URLNoMySQL database connection URL (e.g. mysql://user:password@host:3306/database)
MONGODB_DATABASENoMongoDB database name

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
connect_db

Connect to MySQL database using URL or config

connect_mongodb

Connect to MongoDB database using URL or config

query

Execute a SELECT query

execute

Execute an INSERT, UPDATE, or DELETE query

list_tables

List all tables in the database

describe_table

Get table structure

create_table

Create a new table in the database

add_column

Add a new column to existing table

mongodb_list_collections

List all collections in the MongoDB database

mongodb_find

Find documents in a MongoDB collection

mongodb_insert

Insert documents into a MongoDB collection

mongodb_update

Update documents in a MongoDB collection

mongodb_delete

Delete documents from a MongoDB collection

mongodb_create_collection

Create a new collection in MongoDB

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/yaoxiaolinglong/mcp-mongodb-mysql-server'

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