MCP ExplorerExplorer

Mcp Go Sse Server

@davidferlayon 9 months ago
2 MIT
FreeCommunity
AI Systems
A simple MCP server exposed via SSE with examples tools, resources and prompts

Overview

What is Mcp Go Sse Server

mcp-go-sse-server is a simple MCP server that utilizes Server-Sent Events (SSE) to provide real-time data streaming. It includes example tools, resources, and prompts for users.

Use cases

Use cases for mcp-go-sse-server include applications that need to read data from a PostgreSQL database and publish it to a NATS channel, as demonstrated in the provided example.

How to use

To use mcp-go-sse-server, build the project using ‘go build .’ and run it with the command ‘./mcp-go-sse-server --transport sse --baseurl http://localhost’ or with a specified base URL. An example implementation can be found on the ‘nats-postgres’ branch.

Key features

Key features of mcp-go-sse-server include real-time data streaming via SSE, easy setup with Go, and example implementations for integrating with PostgreSQL and NATS.

Where to use

mcp-go-sse-server can be used in web applications that require real-time updates, such as dashboards, live notifications, and data monitoring systems.

Content

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers