MCP Catalogs
Home

go-playground-mcp

by samber·5·Score 40

MCP server for executing Go code in Go Playground and generating shareable URLs.

developer-toolsai-llmother
3
Forks
12
Open issues
this month
Last commit
2d ago
Indexed

Overview

The go-playground-mcp server provides five tools that interact with the Go Playground API, allowing AI models to execute Go code, generate shareable URLs, and read from existing playground links. It's written in TypeScript and follows MCP protocol standards, making it compatible with various MCP clients. The server supports both code execution and sharing operations, plus the ability to read or execute code directly from existing Go Playground URLs.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI assistants that need to execute Go code for code examples or debugging
you:Educational tools for learning Go programming language
you:Documentation systems that need to include live, executable Go code examples
you:What Go Playground URL formats are supported?
you:Does this server execute code in a secure environment?

When to choose this

Choose this MCP server when you need to execute Go code in a sandbox environment or generate shareable links for Go snippets within your AI workflow.

When NOT to choose this

Avoid this if you need to execute code for other programming languages or require persistent code storage beyond the temporary playground environment.

Tools this server exposes

5 tools extracted from the README
  • run_go_code

    Execute Go code in the Go Playground sandbox

  • share_go_code

    Share Go code and get a shareable URL

  • run_and_share_go_code

    Execute Go code and get both results and a shareable URL

  • read_go_playground_url

    Read Go code from an existing Go Playground URL

  • execute_go_playground_url

    Execute Go code from an existing Go Playground URL

Comparable tools

shell-mcpreplit-mcpcode-executor-mcp

Installation

Install via npm: npm install -g go-playground-mcp

For Claude Desktop, add to config.json:

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

FAQ

What Go Playground URL formats are supported?
The server supports https://go.dev/play/<snippet-id>, https://go.dev/play/p/<snippet-id>, and https://play.golang.org/p/<snippet-id> formats.
Does this server execute code in a secure environment?
Yes, it uses the Go Playground sandbox environment for code execution.

Compare go-playground-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.