developer-tools

Go Playground

by samber

Run and share Go code instantly with Go Playground. Features include code execution, vet checking, and public URLs for e

Enables remote execution of Go code using the official Go Playground API with tools for running code with optional vet checking, sharing snippets via public URLs, and combining execution with sharing for immediate testing and distribution.

github stars

5

Uses official Go Playground APINo API key requiredZero setup via npx

best for

  • / Go developers testing code snippets
  • / Sharing Go examples with colleagues
  • / Code review and collaboration
  • / Learning and experimenting with Go

capabilities

  • / Execute Go code in sandbox environment
  • / Generate shareable URLs for Go snippets
  • / Read code from existing Go Playground URLs
  • / Run code with optional vet checking
  • / Combine execution and sharing in single operation

what it does

Execute Go code remotely using the official Go Playground API and share code snippets with public URLs.

about

Go Playground is a community-built MCP server published by samber that provides AI assistants with tools and capabilities via the Model Context Protocol. Run and share Go code instantly with Go Playground. Features include code execution, vet checking, and public URLs for e It is categorized under developer tools. This server exposes 5 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Go Playground in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Go Playground is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

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

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.

FAQ

What is the Go Playground MCP server?
Go Playground is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Go Playground?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    Go Playground is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated Go Playground against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: Go Playground is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    Go Playground reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend Go Playground for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: Go Playground surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    Go Playground has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, Go Playground benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired Go Playground into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    Go Playground is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.