mcpField
M
mcp-go-sse-server

mcp-go-sse-server

Local
github.com/davidferlayDeveloper Tools2Updated 83w ago

About mcp-go-sse-server

mcp-go-sse-server is a Go example MCP server served over SSE, illustrating tools, resources, and prompts. It suits developers exploring an SSE-based server or adapting the example for integrations such as PostgreSQL and NATS.

Key features

  1. 01SSE transport
  2. 02Example tools, resources, and prompts
  3. 03Go implementation
  4. 04PostgreSQL-to-NATS example on a branch

Use cases

  1. 01Exploring an SSE MCP server
  2. 02Adapting example tools for PostgreSQL and NATS

MCP support

Exposes example tools, resources, and prompts to MCP clients over SSE. A separate branch contains an example that reads from PostgreSQL and writes to a NATS channel.

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.