drio
Open app

MCP-Go SDK

Source

MCP Server SDK in Go and some servers I'm using myself

Catalog onlyCatalog onlySTDIO

Overview

MCP-Go SDK is a Go SDK designed for building Model Communication Protocol (MCP) tools and servers, facilitating the development of MCP-compliant applications that can interact with AI applications like Cursor IDE.

To use the MCP-Go SDK, you can start by checking out the example server provided in the servers/example directory. Implement your own tools by creating a struct that adheres to the mcp.Tool interface and register it with the server.

  • Provides a framework for building MCP-compliant tools. - Includes a flexible transport layer for communication. - Supports easy integration with AI applications. - Comes with example implementations for quick start.
  1. Building custom tools for AI applications.
  2. Creating servers that can process and respond to messages in real-time.
  3. Developing applications that require communication between different services using the MCP protocol.

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-sdk-dentaku7": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-go-sdk-dentaku7"
      ]
    }
  }
}

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-sdk-dentaku7": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-go-sdk-dentaku7"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-go-sdk-dentaku7": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-go-sdk-dentaku7"
      ]
    }
  }
}

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-sdk-dentaku7": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-go-sdk-dentaku7"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-go-sdk-dentaku7": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-go-sdk-dentaku7"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-go-sdk-dentaku7": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-go-sdk-dentaku7"
      ]
    }
  }
}

FAQ

What programming language is MCP-Go SDK written in?

MCP-Go SDK is written in Go.

Is there an example of how to implement a tool?

Yes! The SDK includes an example echo tool that demonstrates how to implement the `mcp.Tool` interface.

How can I contribute to the MCP-Go SDK?

You can contribute by forking the repository, creating a feature branch, adding tests, and submitting a pull request.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3066,"uuid":"865eb3a9-1fab-4879-9e78-55ef9439993d","name":"mcp-go-sdk","title":"MCP-Go SDK","description":"MCP Server SDK in Go and some servers I'm using myself","avatar_url":"https://avatars.githubusercontent.com/u/51998413?v=4","created_at":"2025-03-17T02:47:12.628Z","updated_at":"2025-03-17T03:15:16.622Z","status":"created","author_name":"dentaku7","author_avatar_url":"https://avatars.githubusercontent.com/u/51998413?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/dentaku7/mcp-go-sdk","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"2\",\"license\":\"MIT license\",\"language\":\"Go\",\"is_official\":false,\"latest_commit_time\":\"2025-04-07 14:34:58\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]