Prerequisites
- Claude Code installed (
npm install -g @anthropic-ai/claude-code) - A VexiData account with at least one connected data source
Connect VexiData to Claude Code
1
Copy your MCP Server URL
2
Add VexiData as an MCP server
Run the following command to add VexiData to Claude Code’s MCP configuration:This registers VexiData as an MCP server that Claude Code can use in your sessions. VexiData’s MCP server uses the Streamable HTTP transport, so pass
--transport http — the older sse transport doesn’t work.3
Authorize the connection
Start Claude Code with
claude, run /mcp, select vexidata, and choose to authenticate. A browser window opens on VexiData — review the requested access and click Authorize.4
Start querying your data
Ask Claude Code about your databases. For example:
- “What tables are in my database?”
- “Show me the schema for the orders table”
- “Write a query to find users who haven’t logged in for 30 days”
Manual configuration
You can also add VexiData directly to your Claude Code settings file (~/.claude.json):
Troubleshooting
MCP server fails to connect
MCP server fails to connect
- Run
claude mcp listto verify VexiData is registered - Run
/mcpin Claude Code and authenticate vexidata again - Check that you still have the Use MCP capability
- Try removing and re-adding:
claude mcp remove vexidatathen add again
Claude Code can't access my tables
Claude Code can't access my tables
- Verify you have at least one database connected in VexiData under Integrations
- Check that your database connection is active and the schema has been analyzed
- Try asking specifically about a table name to confirm the connection is working