mcp
Language:
Go
Stars:
4
Forks:
1
mcp
Server implementation of the Model Context Protocol (MCP). Currently allows tools to be exposed to LLMs supporting the protocol.
Example
The example directory contains an example of exposing a tool to Claude to compute a SHA-256 sum.
$ cd mcp/example
$ GOOS=darwin GOARCH=arm64 go build
Add the example server to your Claude config:
$ vim ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"sha256": {
"command": "/path/to/example/binary"
}
}
}
We can then ask Claude:
What is the sha256sum of "the rain in spain falls mainly on the plains"?
Claude will then perform a tool call against the server and return the following response:
The SHA-256 hash of "the rain in spain falls mainly on the plains" is: b65aacbdd951ff4cd8acef585d482ca4baef81fa0e32132b842fddca3b5590e9
Publisher info
More MCP servers built with Go
mcp-kubernetes-ro is a Model Context Protocol (MCP) server providing read-only access to Kubernetes clusters for AI assistants. It enables AI models to list resources, get resource details, retrieve pod logs, discover API resources, and perform base64 encoding/decoding operations - all while maintaining security through read-only access.
A CLI for interacting with GitKraken APIs. Includes an MCP server via gk mcp that not only wraps GitKraken APIs, but also Jira, GitHub, GitLab, and more.
An MCP (Model Context Protocol) server that provides tools for querying OCI registries and image references.