docs/use-cases/mcp_api/mindsdb_mcp_server.mdx
This sections provides instructions on how to start MindsDB with its MCP API enabled.
Install MindsDB locally via Docker or Docker Desktop.
The MCP API is enabled by default, as part of the HTTP API, at path /mcp/.
To enable the HTTP API explicitly, you can use the MINDSDB_APIS environment variable:
export MINDSDB_APIS='http,mysql'
Or, specify it when starting MindsDB:
python -m mindsdb --api http,mysql
To get you started quickly, use our sample dataset that stores the sales manager data.
CREATE DATABASE sales_manager_data
WITH ENGINE = "postgres",
PARAMETERS = {
"user": "demo_user",
"password": "demo_password",
"host": "samples.mindsdb.com",
"port": "5432",
"database": "sales_manager_data"
};
localhost:47334/mcp/sse.