External MCP
The AI overview covers agents running inside Rowpilot. External MCP exists so Rowpilot can become the tool provider for existing agents.
Setup
- Open
Settings → AI → MCP Settingsand enableExternal MCP - Rowpilot starts a local MCP endpoint (localhost HTTP, token-protected)
- Copy the ready-made connection configuration from the same settings section into your agent's MCP configuration
Default configuration example
{
"mcpServers": {
"rowpilot": {
"url": "http://127.0.0.1:45813/mcp-external",
"headers": {
"Authorization": "Bearer {generated token}"
}
}
}
}
- Default
portis set to45813- if it is taken, a different free one is chosen on the first MCP startup Bearer tokenis autogenerated and can be regenerated by clickingRegenerate token
Capabilities
All external tools are read-only in relation to the database. An outside agent can explore and query, but it cannot write:
| Tool | What it does |
|---|---|
list_data_sources | List the data sources you've exposed |
connect_data_source | Connect one of them |
get_connection_status | Check the connection state |
read_schema | Read the schema tree |
read_schema_functions | List schema functions |
read_table_schema | Read the definition of specific tables |
select | Run a read-only query (writes and DDL are rejected) |
analyze_results | Inspect a result set (overview, head, tail, grep, describe, value counts) without re-running the query |
read_knowledge | Read the data source's knowledge base |
get_internal_knowledge | Read Rowpilot's built-in guide to each data source type. Always available |
Access control
You decide what's reachable:
- Per-tool switches: any tool except
get_internal_knowledgecan be turned off individually - Data source settings: you choose exactly which data sources are visible to external agents, and whether newly created ones are exposed by default
- Dedicated AI connection: separate access of AI and editor
- MCP tools that are turned off are disabled in the MCP server itself
From version 0.2.0 all MCP db connections are isolated from the editor and run in read-only mode.
Notes
- The endpoint listens on localhost only
- Query tools use the same read-only statement classification as Guard mode
