PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serverscode-executiongo-playground-mcp
返回「code-execution」

go-playground-mcp

modelscope·@samber/go-playground-mcp

code-execution0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

Go Playground MCP Server

A Model Context Protocol (MCP) server that integrates with the Go Playground API to execute Go code and generate shareable URLs.

tag Build Status Coverage npm License

Features

  • Run Go Code: Execute Go code in the Go Playground sandbox
  • Share Code: Generate shareable URLs for Go code snippets
  • Run and Share: Execute code and get both results and share URL in one operation
  • Read from URL: Read Go code from existing Go Playground URLs
  • Execute from URL: Execute Go code from existing Go Playground URLs
  • MCP Integration: Full Model Context Protocol compliance

Usage

The server can be used with any MCP-compatible client. The server provides five tools:

  1. run_go_code - Execute Go code and return results
  2. share_go_code - Share Go code and get a URL
  3. run_and_share_go_code - Execute code and get both results and share URL
  4. read_go_playground_url - Read Go code from an existing Go Playground URL
  5. execute_go_playground_url - Execute Go code from an existing Go Playground URL

Add this to your MCP client configuration:

{
  "mcpServers": {
    "go-playground": {
      "command": "npx",
      "args": ["-y", "go-playground-mcp"]
    }
  }
}

Examples

Reading code from a Go Playground URL

// Read code from https://go.dev/play/xyz123
const result = await mcpClient.callTool("read_go_playground_url", {
  url: "https://go.dev/play/xyz123"
});

Executing code from a Go Playground URL

// Execute code from https://go.dev/play/xyz123
const result = await mcpClient.callTool("execute_go_playground_url", {
  url: "https://go.dev/play/xyz123",
  withVet: true
});

URL Formats Supported

The new URL-based tools support these Go Playground URL formats:

  • https://go.dev/play/<snippet-id>
  • https://go.dev/play/p/<snippet-id>
  • https://play.golang.org/p/<snippet-id>

Contributing

  • Ping me on Twitter @samuelberthe (DMs, mentions, whatever :))
  • Fork the project
  • Fix open issues or request new features

Don't hesitate ;)

Install

  1. Clone this repository:
git clone https://github.com/samber/go-playground-mcp.git
cd go-playground-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Running the Server

# Development mode
npm run dev

# Production mode
npm run build
npm start

Add this to your MCP client configuration:

{
  "mcpServers": {
    "go-playground": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

Contributors

Contributors

Show your support

Give a if this project helped you!

GitHub Sponsors

License

Copyright 2025 Samuel Berthe.

This project is MIT licensed.

相关 MCP Servers(来自「code-execution」)

Doris模型控制面板服务

后端服务,实现了模型控制面板协议,可连接到 Apache Doris 数据库,允许用户执行 SQL 查询、管理元数据,并且有可能利用大语言模型(LLMs)完成自然语言到 SQL 的转换等任务。

@apache/doris-mcp-server

SEE文件系统MCP服务器

实现模型上下文协议(MCP)的 Node.js 服务器,用于文件系统操作,允许人工智能系统在指定的允许路径内读取、写入、编辑文件和管理目录。

@dinh-ai-system-exe-com-vn/file-system-mcp-see

twilio-labs

暂无描述。

@twilio-labs/mcp

dave-wind

暂无描述。

@dave-wind/mysql-mcp-server

sdiehl

暂无描述。

@sdiehl/sympy-mcp

VibeShift

暂无描述。

@GroundNG/VibeShift

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/samber-go-playground-mcp/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

### Examples #### Reading code from a Go Playground URL ```typescript // Read code from https://go.dev/play/xyz123 const result = await mcpClient.callTool("read_go_playground_url", { url: "https://go.dev/play/xyz123" });

基本信息

分类
code-execution / developer-tools / app-automation
运行方式
No
许可证
MIT License
详情文件
samber-go-playground-mcp.md