{"id":41162818,"url":"https://github.com/samber/go-playground-mcp","last_synced_at":"2026-01-22T19:25:37.388Z","repository":{"id":310872901,"uuid":"1041558311","full_name":"samber/go-playground-mcp","owner":"samber","description":"🤹 A MCP server to execute Go code in Go Playground and generate shareable URLs","archived":false,"fork":false,"pushed_at":"2026-01-01T15:28:36.000Z","size":113,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-06T17:11:54.282Z","etag":null,"topics":["execute","go","interpreter","llm","mcp","modelcontextprotocol","playground","run","share"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/go-playground-mcp","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["samber"]}},"created_at":"2025-08-20T17:01:35.000Z","updated_at":"2026-01-01T15:28:39.000Z","dependencies_parsed_at":"2025-08-20T19:40:42.727Z","dependency_job_id":"917eb737-9863-429f-a287-dd5dd5d852ab","html_url":"https://github.com/samber/go-playground-mcp","commit_stats":null,"previous_names":["samber/go-playground-mcp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/samber/go-playground-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-playground-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-playground-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-playground-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-playground-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samber","download_url":"https://codeload.github.com/samber/go-playground-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-playground-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["execute","go","interpreter","llm","mcp","modelcontextprotocol","playground","run","share"],"created_at":"2026-01-22T19:25:36.689Z","updated_at":"2026-01-22T19:25:37.382Z","avatar_url":"https://github.com/samber.png","language":"TypeScript","funding_links":["https://github.com/sponsors/samber"],"categories":[],"sub_categories":[],"readme":"# Go Playground MCP Server\n\nA Model Context Protocol (MCP) server that integrates with the Go Playground API to execute Go code and generate shareable URLs.\n\n[![tag](https://img.shields.io/github/tag/samber/go-playground-mcp.svg)](https://github.com/samber/go-playground-mcp/releases)\n![Build Status](https://github.com/samber/go-playground-mcp/actions/workflows/test.yml/badge.svg)\n[![Coverage](https://img.shields.io/codecov/c/github/samber/go-playground-mcp)](https://codecov.io/gh/samber/go-playground-mcp)\n[![npm](https://img.shields.io/badge/npm-go--playground--mcp-red?logo=npm)](https://www.npmjs.com/package/go-playground-mcp)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\n## 🧙 Features\n\n- **Run Go Code**: Execute Go code in the Go Playground sandbox\n- **Share Code**: Generate shareable URLs for Go code snippets\n- **Run and Share**: Execute code and get both results and share URL in one operation\n- **Read from URL**: Read Go code from existing Go Playground URLs\n- **Execute from URL**: Execute Go code from existing Go Playground URLs\n- **MCP Integration**: Full Model Context Protocol compliance\n\n## 🏃‍♂️ Usage\n\nThe server can be used with any MCP-compatible client. The server provides five tools:\n\n1. **`run_go_code`** - Execute Go code and return results\n2. **`share_go_code`** - Share Go code and get a URL\n3. **`run_and_share_go_code`** - Execute code and get both results and share URL\n4. **`read_go_playground_url`** - Read Go code from an existing Go Playground URL\n5. **`execute_go_playground_url`** - Execute Go code from an existing Go Playground URL\n\nAdd this to your MCP client configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"go-playground\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"go-playground-mcp\"]\n    }\n  }\n}\n```\n\n### Examples\n\n#### Reading code from a Go Playground URL\n\n```typescript\n// Read code from https://go.dev/play/xyz123\nconst result = await mcpClient.callTool(\"read_go_playground_url\", {\n  url: \"https://go.dev/play/xyz123\"\n});\n```\n\n#### Executing code from a Go Playground URL\n\n```typescript\n// Execute code from https://go.dev/play/xyz123\nconst result = await mcpClient.callTool(\"execute_go_playground_url\", {\n  url: \"https://go.dev/play/xyz123\",\n  withVet: true\n});\n```\n\n#### URL Formats Supported\n\nThe new URL-based tools support these Go Playground URL formats:\n\n- `https://go.dev/play/\u003csnippet-id\u003e`\n- `https://go.dev/play/p/\u003csnippet-id\u003e`\n- `https://play.golang.org/p/\u003csnippet-id\u003e`\n\n## 🤝 Contributing\n\n- Ping me on Twitter [@samuelberthe](https://twitter.com/samuelberthe) (DMs, mentions, whatever :))\n- Fork the [project](https://github.com/samber/go-playground-mcp)\n- Fix [open issues](https://github.com/samber/go-playground-mcp/issues) or request new features\n\nDon't hesitate ;)\n\n### Install\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/samber/go-playground-mcp.git\ncd go-playground-mcp\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Build the project:\n```bash\nnpm run build\n```\n\n### Running the Server\n\n```bash\n# Development mode\nnpm run dev\n\n# Production mode\nnpm run build\nnpm start\n```\n\nAdd this to your MCP client configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"go-playground\": {\n      \"command\": \"node\",\n      \"args\": [\"dist/index.js\"]\n    }\n  }\n}\n```\n\n## 👤 Contributors\n\n![Contributors](https://contrib.rocks/image?repo=samber/go-playground-mcp)\n\n## 💫 Show your support\n\nGive a ⭐️ if this project helped you!\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/samber?style=for-the-badge)](https://github.com/sponsors/samber)\n\n## 📝 License\n\nCopyright © 2025 [Samuel Berthe](https://github.com/samber).\n\nThis project is [MIT](./LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fgo-playground-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamber%2Fgo-playground-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fgo-playground-mcp/lists"}