FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
c15r

c15r

Chat

Public
Like
Chat
Home
Code
2
frontend
4
README.md
Branches
1
Pull requests
Remixes
1
History
Environment variables
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
/
README.md
Code
/
README.md
Search
5/29/2025
Viewing readonly version of main branch: v8
View latest version
README.md

Anthropic Chat with MCP

A mobile-optimized single page chat application that uses the Anthropic Messages API with MCP (Model Context Protocol) server support.

Features

  • Full-screen mobile-optimized chat interface
  • Direct client-side Anthropic API integration
  • Configurable MCP servers with localStorage persistence
  • Settings flyout for API key and MCP server management
  • Real-time chat with Claude 3.5 Sonnet

Project Structure

├── frontend/
│   ├── index.html          # Main HTML template
│   ├── index.tsx           # React app entry point
│   ├── components/
│   │   ├── App.tsx         # Main app component
│   │   ├── Chat.tsx        # Chat interface
│   │   ├── Settings.tsx    # Settings flyout
│   │   └── Message.tsx     # Individual message component
│   └── style.css           # Custom styles
└── README.md

Configuration

The app stores configuration in localStorage:

  • anthropic_api_key: Your Anthropic API key
  • mcp_servers: Array of configured MCP servers

Usage

  1. Open the app
  2. Click the settings icon to configure your Anthropic API key
  3. Add/remove MCP servers as needed
  4. Start chatting with Claude!
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.