mcpField
M
mcp-golang-http-server

mcp-golang-http-server

Local
github.com/davidferlayDeveloper Tools2Updated 83w ago

About mcp-golang-http-server

A small Go MCP server example that demonstrates tools, resources, and prompts over SSE. It is for developers exploring an HTTP-based MCP server; a separate branch shows a PostgreSQL and NATS use case.

Key features

  1. 01SSE transport
  2. 02Tool examples
  3. 03Resource examples
  4. 04Prompt examples

Use cases

  1. 01Explore an SSE-based MCP server
  2. 02Study the PostgreSQL and NATS branch

MCP support

Exposes example tools, resources, and prompts to MCP clients over SSE.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

mcp-go-sse-server

A simple MCP server exposed via SSE with examples tools, resources and prompts. Modified example from https://github.com/mark3labs/mcp-go/blob/main/examples/everything/main.go Run with:

  • go build . && ./mcp-go-sse-server --transport sse --baseurl http://localhost
  • go build . && ./mcp-go-sse-server --transport sse --baseurl https://mcp.example.com --omitPort

A real use-case example implementing tools to read from a postgres database and write to a nats channel can be found on branch nats-postgres

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.