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
- 01SSE transport
- 02Tool examples
- 03Resource examples
- 04Prompt examples
Use cases
- 01Explore an SSE-based MCP server
- 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.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-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://localhostgo 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
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.