← Projects
finemcp
Production-grade Model Context Protocol (MCP) framework for Go. Build MCP servers and clients with 16 middleware, typed tools, streaming and resilience patterns.
FineMCP is a production-grade Go framework for building Model Context Protocol servers and clients. Docs: finemcp.dev.
Why FineMCP?
Most MCP libraries hand you protocol primitives and leave the rest to you. FineMCP treats the server as a system, with security, observability, resilience and correctness built in from day one.
- Security: RBAC per tool, token-bucket rate limiting, JSON Schema input validation, execution sandbox
- Observability: OpenTelemetry traces and metrics, structured logging, audit log, cost tracking
- Resilience: circuit breaker, retry with exponential backoff, panic recovery
- Correctness: automatic JSON Schema generation and typed generic handlers
- Testability: in-process test harness with assertion helpers and golden file diffs
One framework, three uses
- Build servers: import
github.com/finemcp/finemcp - Build clients: import
github.com/finemcp/finemcp/client - Build proxies and gateways: import both
Go only compiles what you import, so a server binary carries no client code.
Highlights
- 16 built-in middleware
- Five transports: stdio, HTTP, SSE, Streamable HTTP and WebSocket
- Client resilience: retry, circuit breaker, reconnect, load balancing, request coalescing
- MCP spec
2025-11-25, with backward compatibility down to2024-11-05
Install with go get github.com/finemcp/finemcp. MIT licensed.