mcp-golang-http-server

by davidferlay

343 downloads
Not rated
GitHub

About

A simple MCP server exposed via SSE with examples tools, resources and prompts

Details

Author
davidferlay
Downloads
343
Categories
Other

- Exposes MCP via SSE transport
- Includes example tools, resources, and prompts
- Built using the mark3labs/mcp-go library
- Configurable base URL via the --baseurl flag
- Supports the --omitPort flag for cleaner URLs

Build the binary with go build . and run it with ./mcp-golang-http-server --transport sse --baseurl http://localhost. For a public deployment, use --baseurl https://mcp.example.com and optionally add the --omitPort flag to exclude the port from the URL.

mcp-golang-http-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-golang-http-server --transport sse --baseurl http://localhost
- go build . && ./mcp-golang-http-server --transport sse --baseurl https://mcp.example.com --omitPort

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.