Integrates with Google embedding models to facilitate the creation and semantic searching of MindsDB knowledge bases.
Allows connecting external MongoDB instances as data sources within MindsDB for data integration and querying.
Uses the MySQL protocol to interface with MindsDB and enables connecting external MySQL databases as data sources for SQL query execution.
Integrates with Ollama embedding models to facilitate the creation and semantic searching of MindsDB knowledge bases.
Integrates with OpenAI embedding models to facilitate the creation and semantic searching of MindsDB knowledge bases.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MindsDB MySQL MCP Serversearch the documentation knowledge base for 'how to configure authentication'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MindsDB MySQL MCP Server
MCP server for MindsDB that connects via MySQL protocol (port 47335), providing reliable tools for Claude Code and Desktop.
Why MySQL over SSE/HTTP?
MySQL protocol is stable and well-tested
No async event loop issues (the "this event loop is already running" errors)
Better error messages and debugging
Works reliably with knowledge base queries
Installation
Configuration
Environment Variables
Variable | Default | Description |
|
| MindsDB server host |
|
| MindsDB MySQL port |
|
| Username (use your MindsDB Cloud email for cloud instances) |
| (empty) | Password (required for MindsDB Cloud) |
Claude Code (~/.claude.json)
For MindsDB Cloud, use your email as MINDSDB_USER and your password for MINDSDB_PASSWORD.
Claude Desktop (claude_desktop_config.json)
Same configuration, add to the mcpServers object.
Available Tools (11)
1. query - Execute SQL
Execute any MindsDB SQL query. Use this for custom queries not covered by other tools.
2. list_databases - List Data Sources
List all databases/data sources in MindsDB.
3. list_knowledge_bases - List KBs
List all knowledge bases in MindsDB.
4. describe - Describe Any Object
Describe a model, table, or knowledge base. Returns column information.
5. search_kb - Search Knowledge Base
Search a knowledge base using hybrid semantic + keyword search.
6. insert_kb - Insert Data into Knowledge Base
Insert data into a knowledge base from a source query.
7. create_kb - Create Knowledge Base
Create a new knowledge base with embedding model configuration.
8. list_jobs - List Scheduled Jobs
List all scheduled jobs in MindsDB.
9. create_job - Schedule Recurring Query
Create a scheduled job to run a query at regular intervals.
10. list_tables - List Tables
List all tables in a specific database.
11. connect_database - Connect External Data Source
Connect an external database as a data source in MindsDB.
Testing
With MCP Inspector
Or with a remote MindsDB instance:
Manual verification
After configuring Claude Code, restart and verify:
MindsDB SQL Reference
Knowledge Base Query
Output Columns
chunk_id:<id>:<chunk_number>of<total>:<start_char>to<end_char>chunk_content: The text contentrelevance: 0-1 score (higher = better match)distance: Vector distance (lower = closer)