1. Conduid
  2. Developer Tools
  3. Go
MCP server · Developer Tools

Go

Example of MCP server

Unclaimed Apache-2.0 last commit a year ago devtools
49Fair

Scored 4 months ago · breakdown

About Go

Go is an MCP server published by carlossantin in the Developer Tools category: example of MCP server. It has been installed 0 times through Conduid.

Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx mcp-server-go

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Go

Powered by Claude · Grounded in docs

I know everything about Go. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

MCP Server Go Example

This is an example implementation of a Model Context Protocol (MCP) server written in Go. This project demonstrates how to build a simple MCP server with custom tools.

⚠️ Important Disclaimer

This is a demonstration project only! The temperature readings provided by this server are NOT REAL and are purely fictional for example purposes. Do not use this for actual weather information or any production use cases.

About This Project

This MCP server provides a "crazy temperature" tool that returns humorous, fictional temperature readings for various Brazilian cities. The responses are written in local Brazilian Portuguese dialects and are meant to showcase the MCP server functionality rather than provide real weather data.

Features

  • MCP Server: Built using the mcp-go library
  • Custom Tool: Implements a temperature tool with Brazilian humor
  • SSE Server: Provides Server-Sent Events endpoint for real-time communication
  • Recovery Middleware: Includes error recovery mechanisms

Project Structure

.
├── go.mod              # Go module dependencies
├── go.sum              # Go module checksums
├── LICENSE             # Project license
├── main.go             # Main server entry point
├── tools/
│   └── temperature.go  # Temperature tool implementation
└── README.md           # This file

Dependencies

  • Go 1.24.1 or later
  • mcp-go: MCP (Model Context Protocol) library for Go

Installation

  1. Clone the repository:

    git clone https://github.com/carlossantin/mcp-server-go.git
    cd mcp-server-go
    
  2. Install dependencies:

    go mod tidy
    

Usage

Running the Server

Start the MCP server:

go run main.go

The server will start on port 8080 with the following endpoints:

  • SSE Endpoint: http://localhost:8080/mcp/events
  • Message Endpoint: http://localhost:8080/mcp/message

Available Tools

crazy_temperature

Returns fictional temperature readings for Brazilian cities.

Parameters:

  • city (required): Name of the city

Supported Cities:

  • Porto Alegre / POA
  • Belo Horizonte / BH
  • São Paulo / Sampa
  • Rio de Janeiro / Rio / RJ
  • Any other city (generic response)

Example Usage:

{
  "method": "tools/call",
  "params": {
    "name": "crazy_temperature",
    "arguments": {
      "city": "Porto Alegre"
    }
  }
}

Development

Building

go build -o mcp-server-go

Running Tests

go test ./...

MCP Integration

This server can be integrated with any MCP-compatible client. The server implements the Model Context Protocol specification and provides tools that can be discovered and used by AI assistants and other MCP clients.

License

See the LICENSE file for details.

Contributing

This is an example project. Feel free to fork and modify it for your own learning purposes.

Acknowledgments

  • Built with mcp-go
  • Uses the Model Context Protocol specification

Remember: This is a demonstration project only. The temperature data is completely fictional and should not be used for any real-world applications!

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About Go

How do I install Go?

Run npx mcp-server-go, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Go safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Go still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.