MCP.so
ログイン

MCP Golang

@metoro-io

基本情報

カテゴリ

その他

ライセンス

MIT

トランスポート

stdio

作者

metoro-io

MCP Golang について

Write Model Context Protocol servers in few lines of go code. Docs at https://mcpgolang.com . Created by https://metoro.io

MCP Golang の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

MCP Golang のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is mcp-golang?

mcp-golang is an unofficial Go implementation of the Model Context Protocol (MCP) that allows developers to write MCP servers and clients in Go with minimal code. It is designed for Go developers who want to integrate AI tools, prompts, and resources using type-safe native Go structs and flexible transport options.

How to use mcp-golang?

Install the library with go get github.com/metoro-io/mcp-golang. Then create an MCP server by defining tool arguments as Go structs, registering tools/prompts/resources, and choosing a transport (stdio, HTTP, Gin, or SSE). A client can be initialized similarly to call tools or prompts on a running server. Integration with Claude Desktop requires pointing to the compiled server executable in the Claude desktop configuration JSON.

Key features of mcp-golang

  • Type safety: tool arguments as native Go structs with automatic JSON schema generation
  • Custom transports: built-in stdio, HTTP, Gin, SSE, and custom transport support
  • Low boilerplate: automatic MCP endpoint generation for tools, prompts, and resources
  • Modular: separate transport, protocol, and server/client components
  • Bidirectional: full server and client implementations via stdio transport

Use cases of mcp-golang

  • Build MCP servers for Claude Desktop or other MCP-compatible AI clients
  • Create type-safe, programmable tools and prompts exposed via MCP
  • Develop a client that calls remote MCP server tools and resources
  • Integrate MCP into existing Go applications for AI interaction

よくある質問

1

Does HTTP transport support bidirectional features like notifications?

No, HTTP transports are stateless and do not support notifications or other bidirectional features. Use stdio transport if those are needed.

2

What transports are currently available?

Stdio (full feature support), HTTP and Gin (stateless), SSE, and a custom transport interface are available. HTTPS with custom auth is in progress.

3

Can I use mcp-golang with Claude Desktop?

Yes. Configure the server executable path in Claude Desktop's `claude_desktop_config.json` under `mcpServers`.

4

Is mcp-golang production-ready?

The library supports all core MCP features (tools, prompts, resources) with pagination and change notifications. HTTP transport is stateless; HTTPS with custom auth is under development. Contributions are welcome.

コメント

「その他」の他のコンテンツ