{"repo":"metoro-io/mcp-golang","free":true,"listed":false,"github":"https://github.com/metoro-io/mcp-golang","clone":"git clone https://github.com/metoro-io/mcp-golang.git","description":"Write Model Context Protocol servers in few lines of go code. Docs at https://mcpgolang.com . Created by https://metoro.io","language":"Go","stars":1227,"topics":[],"license":"MIT","category":"mcp-servers","readme_excerpt":"mcp-golang mcp-golang is an unofficial implementation of the Model Context Protocol in Go. Write MCP servers and clients in golang with a few lines of code. Docs at https://mcpgolang.com Highlights - 🛡️ Type safety - Define your tool arguments as native go structs, have mcp-golang handle the rest. Automatic schema generation, deserialization, error handling etc. - 🚛 Custom transports - Use the built-in transports (stdio for full feature support, HTTP for stateless communication) or write your own. - ⚡ Low boilerplate - mcp-golang generates all the MCP endpoints for you apart from your tools, prompts and resources. - 🧩 Modular - The library is split into three components: transport, protocol and server/client. Use them all or take what you need. - 🔄 Bi-directional - Full support for both server and client implementations through stdio transport. Example Usage Install with go get github.com/metoro-io/mcp-golang Server Example HTTP Server Example You can also create an HTTP-based server using either the standard HTTP transport or Gin framework: Note: HTTP transports are stateless and don't support bidirectional features like notifications. Use stdio transport if you need those features. Client Example Checkout the examples/client directory for a more complete example. Using with Claude Desktop Create a file in /Library/Application Support/Claude/claude desktop config.json with the following contents: Contributions Contributions are more than welcome! Please check out our con","default_branch":null,"files":null,"tree":[],"storefront":"/r/metoro-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/metoro-io/mcp-golang/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}