Skip to content

MCP

Use the Val Town MCP server to work with Val Town in your preferred AI tool, e.g. with Claude Code.

  1. Connect the Val Town MCP server (https://api.val.town/v3/mcp) to your LLM

  2. 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/mcp
> /mcp
  • 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 Versions tab or History of your val to revert
  • Large changes? Use feature branches and merge when stable
  • Need help? Ask in the Val Town Discord in the #local-dev channel