Cover image
Try Now
2025-03-26

Valtown MCP服务器 - 执行AI助手的Valtown功能

3 years

Works with Finder

2

Github Watches

1

Github Forks

8

Github Stars

ValTown 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

  1. Install Deno
  2. Clone this repository
  3. 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 with vtwn_)

You can obtain a ValTown API token from your ValTown account settings.

Usage with MCP Clients

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.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    4 (1)
    Avatar
    user_gYUjeo1g
    2025-04-15

    I recently started using Croft by ashleyhindle, and I must say it has completely exceeded my expectations. The interface is user-friendly, allowing for a smooth experience from the get-go. You can find more details about it at https://mcp.so/server/croft/ashleyhindle. I'd highly recommend it to anyone looking for a reliable and efficient solution.