go-playground-mcp
by samber·★ 5·Score 40
MCP server for executing Go code in Go Playground and generating shareable URLs.
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:
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 READMErun_go_codeExecute Go code in the Go Playground sandbox
share_go_codeShare Go code and get a shareable URL
run_and_share_go_codeExecute Go code and get both results and a shareable URL
read_go_playground_urlRead Go code from an existing Go Playground URL
execute_go_playground_urlExecute Go code from an existing Go Playground URL
Comparable tools
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
Last updated · Auto-generated from public README + GitHub signals.