Today I’m releasing the first beta of FineMCP, a framework for building Model Context Protocol servers and clients in Go. The version is v0.1.0-beta.1, the license is MIT, and the docs live at finemcp.dev.
Why I built it
MCP lets tools like Claude, Cursor and VS Code Copilot discover and call tools, resources and prompts that your server exposes over JSON-RPC. Most libraries hand you the protocol primitives and stop there. Once a server leaves your laptop you need auth, rate limits, input validation, tracing and a plan for when things fail, and you end up writing that glue every time.
FineMCP treats the server as a system. Those concerns are part of the framework from day one.
What’s in the beta
- Server, client, or both. Import
github.com/finemcp/finemcpfor a server, or.../clientfor a client. Go only compiles what you import, so a server binary carries no client code. - 16 built-in middleware. Recovery, logging, auth, RBAC, rate limiting, schema validation, sandbox limits, OpenTelemetry, caching, circuit breaker, retry, audit log, cost tracking, multi-tenancy, async jobs and dry-run simulation. A custom one is a single
func(ToolHandler) ToolHandler. - Typed tools.
NewTypedTool[In, Out]()generates the JSON Schema from your struct tags, so the contract and the code can’t drift apart. - Five transports. Stdio, HTTP, SSE, Streamable HTTP and WebSocket.
- Client resilience. Retry with backoff, circuit breaker, reconnects, load balancing and request coalescing.
- A zero-network test harness. Test your server in-process, with assertion helpers and golden-file diffs.
- Spec coverage. MCP
2025-11-25, with backward compatibility down to2024-11-05.
A taste of it
A typed tool is a struct in, a struct out:
type AddInput struct {
A int `json:"a" description:"first number"`
B int `json:"b" description:"second number"`
}
type AddOutput struct {
Sum int `json:"sum"`
}
From there FineMCP wires up the schema, validation and the middleware chain around your handler. The docs walk through the full setup.
What “beta” means
The core is in place, but the API can still change before 1.0. I’d love feedback on the API shape, the middleware set, and anything that feels awkward. Issues and pull requests are very welcome on GitHub.
Try it with go get github.com/finemcp/finemcp.