Use the Val Town MCP server to work with Val Town in your preferred AI tool, e.g. with Claude Code. Our MCP server also powers Townie, which you can use in Val Town alongside the val editor.
-
Connect the Val Town MCP server (
https://api.val.town/v3/mcp) to your LLM -
Authorize the Val Town MCP server by following the OAuth flow
E.g. for Claude Code:
claude mcp add --transport http val-town https://api.val.town/v3/mcpIn Claude, type /mcp to confirm that it’s connected, and authenticate if necessary.
Popular tools
Section titled “Popular tools” Claude Code Val Town MCP + Claude Code
Claude Web/Desktop Val Town MCP + Claude Web/Desktop
ChatGPT Web/Desktop Val Town MCP + ChatGPT
Cursor Val Town MCP + Cursor
[Your LLM of choice] Val Town MCP + ?
Tips, Troubleshooting
Section titled “Tips, Troubleshooting”- Ask your LLM to list or examine your vals or read sqlite data, logs, etc.
- Ask your LLM to edit vals and even agentically iterate
- Broken code? Visit the
Versionstab orHistoryof your val to revert - Large changes? Use feature branches and merge when stable
- Need help? Ask in the Val Town Discord in the
#local-devchannel