Overview
MCP Go SDK is a Go implementation of the Model Context Protocol (MCP), designed to facilitate the creation of MCP servers and clients for integrating with large language model (LLM) surfaces.
To use the MCP Go SDK, you can build an MCP server by implementing the provided interfaces and methods, and then connect it to any MCP client. An example server is included in the documentation.
- Full implementation of the Model Context Protocol (MCP) specification. - Ability to build MCP clients and servers. - Support for standard transports like stdio and SSE. - Handles all MCP protocol messages and lifecycle events.
- Building servers that expose resources and tools for LLMs.
- Creating clients that can connect to various MCP servers.
- Facilitating standardized context provision for LLM interactions.
Add to your AI client
Use these steps to connect MCP Go SDK in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-go-riza-io": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-go-riza-io"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-go-riza-io": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-go-riza-io"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-go-riza-io": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-go-riza-io"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-go-riza-io": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-go-riza-io"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-go-riza-io": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-go-riza-io"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-go-riza-io": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-go-riza-io"
]
}
}
}FAQ
What is the Model Context Protocol?
The Model Context Protocol is a standard for providing context to LLMs, separating context provision from LLM interaction.
Is MCP Go SDK free to use?
Yes! MCP Go SDK is open-source and available under the MIT license.
What programming language is MCP Go SDK written in?
MCP Go SDK is written in Go.