What You Can Do with Claude × Val Town | Townie AI, MCP, and Instant Deploy
The number of developers asking "Can I write a val with Claude and run it immediately?" is surging. In May 2026, Val Town's official report recorded that "Claude became the biggest source of new users" — a testament to how much attention the Claude and Val Town combination is getting right now. This article explains what Val Town is and how to use Townie AI, the Val Town MCP, and the Claude Code plugin in concrete terms.
目次 (21)
- What is Val Town — A Platform That Deploys JavaScript in 100ms
- Claude Became Val Town's Biggest Source of New Users — May 2026 Official Report
- Townie AI — An In-Browser Coding Assistant Powered by Claude 4.5
- Townie's 3 Operating Modes
- What You Can Do with Townie
- Availability and Pricing
- How to Set Up the Val Town MCP
- Tools Available via MCP (36+ types)
- Steps to Add MCP to Claude Desktop
- How to Deploy from Claude Code to Val Town
- Installation and Setup
- The Actual Deployment Flow
- 5 Representative Use Cases
- 1. Instant Creation of Simple API Endpoints
- 2. Automating Scheduled Batch Processing
- 3. Email-Triggered Workflows
- 4. Lightweight App Backends Using SQLite
- 5. Sharing Prototypes and Demos
- Val Town Pricing Plans and Getting Started
- Steps to Get Started for Free
- Summary
What is Val Town — A Platform That Deploys JavaScript in 100ms
Val Town is a platform where you write small JavaScript / TypeScript code snippets (= vals) and instantly run them in the cloud. No AWS setup, no Docker required. Just paste your code into the editor and save — that code becomes a function running on the web.
The main runtime types Val Town offers are as follows:
- HTTP val: Acts as an API endpoint with a URL
- Cron val: Batch processing that runs on a scheduled interval
- Email val: Executes processing triggered by incoming email
- Script val: Run manually or called from other vals
The official blog explicitly states "deploy in under 100ms" — the moment you save your code, the production environment is updated. It is used broadly from individual developers to corporate prototyping, and the ability to integrate directly with LLM tools like Claude via the Val Town MCP server is a major reason it has attracted Claude users.
Official site: https://www.val.town
Claude Became Val Town's Biggest Source of New Users — May 2026 Official Report
In an investor update published in June 2026, Val Town stated:
"Claude became our biggest source of new users"
This is the result of the widespread adoption of a workflow where users write code via the Val Town MCP from Claude Code or Claude Desktop and deploy it directly. The same report refers to it as "the month of Claude Code," reflecting a surge in Claude Code users discovering and leveraging Val Town.
Source: https://blog.val.town/2026-may
Townie AI — An In-Browser Coding Assistant Powered by Claude 4.5
Townie AI is Val Town's own coding assistant. Townie v5, released in January 2026, runs on the Claude 4.5 family (Haiku / Sonnet / Opus) and lets you perform all Val Town operations in natural language directly in your browser.
From the official documentation: "Claude Code, but running in the browser, optimized for Val Town's simple and instant runtime."
Townie's 3 Operating Modes
When you launch Townie (shortcut ⌘J), you can choose from 3 modes:
- Normal — The default mode that asks for approval before making edits. Use this when you want to review changes before applying them.
- Plan — A read-only thinking partner mode. No code is written; it only handles design and research.
- Allow all edits — A fully autonomous mode that automatically applies all changes.
What You Can Do with Townie
Townie is not just a chat interface — it handles all aspects of Val Town operations.
- Create, search, and list vals
- Read, write, and execute files
- Read from and write to SQLite databases
- Manage Blob storage
- Set and reference environment variables
- View logs and configure Cron jobs
Slash commands are also available, letting you fine-tune operations with /cost (display current usage cost) and /context (manage context).
Availability and Pricing
Townie AI is available on Val Town's Pro and Teams plans (public beta). The Pro plan starts at $10/month. Inference costs are purely a passthrough to Anthropic — Val Town explicitly states zero markup.
Source: https://blog.val.town/townie-v5
How to Set Up the Val Town MCP
Using the Val Town MCP (Model Context Protocol) server, you can directly operate Val Town from Claude Desktop or Claude Code. A major advantage is the ability to develop and deploy vals using your preferred Claude model without using Townie.
Tools Available via MCP (36+ types)
- Code operations: Create, read, edit, run, and delete vals
- Storage: Read/write to SQLite databases and Blob storage
- Management: Set environment variables, view execution logs, manage val history
- Sharing: Change val visibility and sharing settings
Steps to Add MCP to Claude Desktop
- Open the Val Town official documentation (https://www.val.town/mcp)
- Generate a Val Town API key from the settings screen
- Add the following to Claude Desktop's MCP configuration file
{
"mcpServers": {
"val-town": {
"command": "npx",
"args": ["-y", "@valtown/mcp-server"],
"env": {
"VAL_TOWN_API_KEY": "your_api_key_here"
}
}
}
}
- Restart Claude Desktop, and the Val Town tool suite becomes available from Claude.
After setup, simply tell Claude "Write a val that creates an HTTP endpoint" and everything from code generation to deployment completes automatically.
Source: https://blog.val.town/mcp
How to Deploy from Claude Code to Val Town
To deploy directly from Claude Code to Val Town, use the Val Town plugin released in June 2026. It can be installed with a single command: npx plugins add val-town/plugins.
Installation and Setup
- Run the following in your terminal
npx plugins add val-town/plugins
- Enter your Val Town API key when prompted
- Restart Claude Code
That's all it takes for Claude Code to incorporate both the Val Town MCP server and Val Town Skills (best-practice knowledge for HTTP vals, Cron, email, OAuth, and frontend development).
The Actual Deployment Flow
- In the Claude Code chat, instruct it: "Create an HTTP val that fetches and returns JSON."
- Claude generates the code and creates the val via the Val Town MCP.
- About 100ms after saving, the endpoint is live in production.
- Check the logs and execution results directly in Claude Code.
No local build tools or servers are needed — from instruction to deployment takes just seconds.
Source: https://blog.val.town/plugin
5 Representative Use Cases
1. Instant Creation of Simple API Endpoints
When you need an API that processes and returns data from an external service, an HTTP val in Val Town is the fastest option. Ask Claude "Write a val that fetches the star count of a specific GitHub repository and returns it as JSON," and a working endpoint is ready in seconds.
2. Automating Scheduled Batch Processing
Recurring tasks like crawling a specific URL every day and sending a Slack notification can be handled with Cron vals. Just tell Claude "Write a cron that runs [task] every morning at 9am" and the schedule is configured as well.
3. Email-Triggered Workflows
Using Val Town's Email val, you can trigger processing based on emails received at a specific email address. Common use cases include parsing incoming content and saving it to Notion, or summarizing and forwarding the content.
4. Lightweight App Backends Using SQLite
Val Town has SQLite built in, so you can build a backend for small apps that need data persistence without any additional infrastructure. Tell Claude "Write a REST API with user registration and listing, with SQLite," and a fully functional API is complete.
5. Sharing Prototypes and Demos
Since every val instantly gets a public URL, sharing with your team or demoing to clients is as simple as copy and paste. Because you get behavior close to a production environment, the feedback cycle is dramatically shortened.
Val Town Pricing Plans and Getting Started
| Plan | Monthly | Townie AI | Key Limits |
|---|---|---|---|
| Free | $0 | Not available | Public vals only, execution limits apply |
| Pro | $10+ | Available | Private vals, relaxed limits |
| Teams | Contact us | Available | Team management and collaboration features |
Steps to Get Started for Free
- Visit https://www.val.town
- Sign up with your GitHub account (email registration also available)
- Write JavaScript in the editor at the center of the screen and save
- Access the generated URL to verify it works
To integrate with Claude, all you need is a Val Town API key — then you can start using it immediately via MCP or the Claude Code plugin. Start with the free plan to get a feel for vals, then consider upgrading to the Pro plan if you want to try Townie AI.
Summary
Val Town is a platform that delivers a development experience of "write JavaScript, deploy instantly." There are 3 ways to integrate with Claude:
- Townie AI — An in-browser assistant powered by Claude 4.5 (Pro plan)
- Val Town MCP — Directly operate vals from Claude Desktop / Code
- Val Town plugin for Claude Code — 100ms deployment with
npx plugins add val-town/plugins
This combination has such strong affinity that Claude became the biggest source of new users. The first step is to try it out on the free plan.