• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
kamalnrf

kamalnrf

valtown-mcp-client

A minimal client for Val Town MCP
Public
Like
valtown-mcp-client
Home
Code
7
generated-test-files
README.md
compile-types.ts
create-mcp-client.ts
test.ts
types.generated.ts
valtown.ts
Branches
3
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Val Town MCP Client

A minimal MCP client for Val Town

Setup

  • Get your API token from val.town/settings/api
  • Add it as an environment variable: VAL_TOWN

Note: Enable write permissions for Vals if you want to create or edit files.

Usage

Create val
import valTownMCP from "https://esm.town/v/kamalnrf/valtown-mcp/valtown.ts"; const client = await valTownMCP(); // List available tools const tools = await client.listTools(); // Call a tool list_val const vals = await client.callTool("list_vals", { "limit": 32, "offset": 0, "sortBy": "updated", "sortOrder": "desc", }), ); await client.close();
Code
generated-test-filesREADME.mdcompile-types.tscreate-mcp-client.tstest.tstypes.generated.tsvaltown.ts
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.