Welcome to mcp-golang - A Go Implementation of the Model Context Protocol
mcp-golang is an unofficial implementation of the Model Context Protocol in Go. It provides a robust framework for building servers that can interact with AI models through a standardized protocol.
Set up an MCP server with support for tools, resources, and prompts in just a few lines of code.
Full Go type safety with automatic JSON schema generation from go structs.
Just take the components you need: transport, protocol or server.
mcp-golang has implemented the default transports: stdio and sse. If you need to implement your own transport, no problem! Use the rest of the library
The library is designed with the following principles in mind:
To start using mcp-golang in your project, head over to our Quickstart guide. For more detailed information about development and contribution, check out our Development guide.
Welcome to mcp-golang - A Go Implementation of the Model Context Protocol
mcp-golang is an unofficial implementation of the Model Context Protocol in Go. It provides a robust framework for building servers that can interact with AI models through a standardized protocol.
Set up an MCP server with support for tools, resources, and prompts in just a few lines of code.
Full Go type safety with automatic JSON schema generation from go structs.
Just take the components you need: transport, protocol or server.
mcp-golang has implemented the default transports: stdio and sse. If you need to implement your own transport, no problem! Use the rest of the library
The library is designed with the following principles in mind:
To start using mcp-golang in your project, head over to our Quickstart guide. For more detailed information about development and contribution, check out our Development guide.