Tidewave MCP for Phoenix

Tidewave MCP gives your AI editor runtime intelligence for a running Phoenix app — live SQL, code evaluation, Ecto schema introspection, and version-exact hex docs over the Model Context Protocol. phxagents ships a dedicated Tidewave integration skill so Claude Code prefers these runtime tools over guessing from Bash.

What is Tidewave MCP?

Tidewave (from Dashbit, the team behind Elixir and Livebook) exposes a running Phoenix application’s runtime to AI editors and coding agents through an MCP server. Instead of reading static files and guessing, the agent can query the live database, evaluate code in the running app, look up Ecto schemas and source locations, read logs, and fetch documentation pinned to your mix.lock versions.

phxagents wires this into the Claude Code workflow with the tidewave-integration skill. When the mcp__tidewave__ tools are present in a dev session, the plugin routes runtime questions through Tidewave automatically.

Runtime tools phxagents uses

Each Tidewave MCP tool has a Bash fallback the plugin only reaches for when Tidewave is unavailable:

TaskTidewave MCP toolFallback
Version-exact hex docsmcp__tidewave__get_docsweb_fetch hexdocs.pm/…
Evaluate code in the appmcp__tidewave__project_evalmix run -e "…"
Run a SQL querymcp__tidewave__execute_sql_querypsql $DATABASE_URL
Find a source locationmcp__tidewave__get_source_locationgrep -rn "defmodule"
List Ecto schemasmcp__tidewave__get_ecto_schemasRead lib/*/schemas/
Read runtime logsmcp__tidewave__get_logstail -f log/dev.log

Setup & detection

Add Tidewave to your Phoenix app (see tidewave.ai), then confirm the MCP endpoint is reachable in development:

Check the Tidewave MCP endpoint
curl -s http://localhost:4000/tidewave/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"ping"}'

Inside Claude Code, run /mcp to verify the mcp__tidewave__ tools are connected. Once they are, phxagents’ runtime workflows light up with no extra configuration.

Dev only — never in production

Tidewave tools evaluate code and run SQL against the live runtime, so phxagents enforces a hard rule: Tidewave is dev-only. The plugin never uses these tools in production contexts and avoids shared dev servers that hold copies of production data. SQL is treated as read-heavy — execute_sql_query for SELECTs, with care around mutations.

Learn more