About ValTown MCP Server
ValTown MCP Server lets AI assistants execute code in the ValTown environment. It supports MCP clients and can run as a hosted service or locally, with a ValTown API token required.
Key features
- 01Executes ValTown functions
- 02Works with MCP clients
- 03Hosted or local operation
- 04Pre-built binaries for three platforms
Use cases
- 01Run ValTown functions from an AI assistant
- 02Connect an MCP client to hosted ValTown
- 03Run the server locally with an API token
MCP support
The server exposes ValTown function execution to MCP clients. Clients can connect to the hosted streamable HTTP endpoint or run the server locally with a ValTown API token.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://prashamtrivedi-valtown-mcp-server.val.run/mcpclaude mcp add --transport http valtown https://prashamtrivedi-valtown-mcp-server.val.run/mcp{"mcpServers":{"valtown":{"type":"http","url":"https://prashamtrivedi-valtown-mcp-server.val.run/mcp"}}}Open in Cursor{"servers":{"valtown":{"type":"http","url":"https://prashamtrivedi-valtown-mcp-server.val.run/mcp"}}}Open in VS Code{"mcpServers":{"valtown":{"type":"http","url":"https://prashamtrivedi-valtown-mcp-server.val.run/mcp"}}}{"mcpServers":{"valtown":{"serverUrl":"https://prashamtrivedi-valtown-mcp-server.val.run/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://prashamtrivedi-valtown-mcp-server.val.run/mcpAuth requiredTools
Details
From the project READMEValTown MCP Server
A Model Context Protocol (MCP) server for ValTown that allows AI assistants to execute code in the ValTown environment.
Features
- Execute ValTown functions from AI assistants
- Compatible with all MCP clients (Claude Desktop, Claude Code, etc.)
- Cross-platform support (Windows, macOS, Linux)
Installation
Option 1: Use pre-built binaries
Download the appropriate binary for your platform from the latest release:
- Linux:
valtown-mcp-linux - Windows:
valtown-mcp-windows.exe - macOS:
valtown-mcp-macos
Option 2: Build from source
- Install Deno
- Clone this repository
- Build the binaries:
deno task build # Builds for all platforms deno task build:linux # Builds only for Linux deno task build:windows # Builds only for Windows deno task build:macos # Builds only for macOS
Option 3: Run directly with Deno
deno task start # Run the server
deno task dev # Run the server with watch mode for development
Configuration
The server requires a ValTown API token to operate. Set the following environment variable:
VAL_TOWN_API_TOKEN: Your ValTown API token (starts withvtwn_)
You can obtain a ValTown API token from your ValTown account settings.
Usage with MCP Clients
Online Connection (Hosted on ValTown)
The easiest way to use this MCP server is to connect to the hosted version running on ValTown:
{
"mcpServers": {
"valtown": {
"type": "streamable-http",
"url": "https://prashamtrivedi-valtown-mcp-server.val.run/mcp",
"headers": {
"x-val-town-token": "YOUR_VAL_TOWN_TOKEN_HERE"
}
}
}
}
Replace YOUR_VAL_TOWN_TOKEN_HERE with your actual ValTown API token.
Local Installation
If you prefer to run the server locally, you can use the following methods:
Claude Desktop
Windows Configuration
Add the following to your Claude Desktop configuration:
"valtown": {
"command": "C:\\path\\to\\valtown-mcp-windows.exe",
"env": {
"VAL_TOWN_API_TOKEN": "vtwn_KEY"
}
}
macOS Configuration
Add the following to your Claude Desktop configuration:
"valtown": {
"command": "/path/to/valtown-mcp-macos",
"env": {
"VAL_TOWN_API_TOKEN": "vtwn_KEY"
}
}
Linux Configuration
Add the following to your Claude Desktop configuration:
"valtown": {
"command": "/path/to/valtown-mcp-linux",
"env": {
"VAL_TOWN_API_TOKEN": "vtwn_KEY"
}
}
Running with Deno (all platforms)
If you have Deno installed, you can run the server directly:
"valtown": {
"command": "deno",
"args": ["run", "--allow-net", "--allow-env", "--allow-read", "/path/to/mod.ts"],
"env": {
"VAL_TOWN_API_TOKEN": "vtwn_KEY"
}
}
Claude Code
Add the ValTown MCP server to Claude Code using the CLI:
claude mcp add valtown /path/to/valtown-mcp-linux -e VAL_TOWN_API_TOKEN=vtwn_KEY
On Windows, use:
claude mcp add valtown C:\path\to\valtown-mcp-windows.exe -e VAL_TOWN_API_TOKEN=vtwn_KEY
On macOS, use:
claude mcp add valtown /path/to/valtown-mcp-macos -e VAL_TOWN_API_TOKEN=vtwn_KEY
Other MCP Compatible Clients
For other MCP compatible clients, configure them to point to the ValTown MCP
server binary and ensure the VAL_TOWN_API_TOKEN environment variable is set.
Troubleshooting
- Ensure your ValTown API token is valid
- Check that the server has network access
- Verify the correct permissions are set on the binary (Linux/macOS may require
chmod +x)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Changelog
See the CHANGELOG for a list of notable changes to this project.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.