Skip to content
shunsei.dev
Go back

Go言語でのMCPサーバーSDKの存在について

Edit page

はじめに

Redditを徘徊していたら以下のスレッドを見つけました。最近、トレンドになっているMCPサーバーについてです。自分としては、Goを普段触ることもあり、Goの絡みもあったので軽くまとめてみました。

www.reddit.com
www.reddit.com favicon www.reddit.com

どんな人向けの記事か?

SDKは存在するの?

結論から言うと、「現状では公式なSDKはまだ存在しない」みたいです。しかし、複数の非公式な実装が存在し、開発コミュニティの関心も高まっているようです。現在注目されているGo言語のMCPサーバーSDKとしては、以下のリポジトリが「安定している」、「非常に人気がある」として一定の評価を得ているようです。

GitHub - mark3labs/mcp-go: A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools. - mark3labs/mcp-go
GitHub - mark3labs/mcp-go: A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools. favicon github.com
GitHub - mark3labs/mcp-go: A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.

また、上記のリポジトリについて言及している記事もあったのでいくつか抜粋します。 英語で書かれているので、サクッと読みたい人はNotebookLMとかにぶち込んでみてください。

Building a Model Context Protocol (MCP) Server in Go
A practical quickstart guide for building MCP servers in Go with MCP Go SDK.
Building a Model Context Protocol (MCP) Server in Go favicon navendu.me
Building a Model Context Protocol (MCP) Server in Go
github.com
github.com favicon github.com

興味深い点としてGithubのMCPサーバーはGoで書かれているみたいです。 ただし、このGitHubの実装は、GoogleがメンテナンスしているGitHub Go SDKやlogrusといった外部ライブラリに依存しているという指摘もあります。

GitHub - github/github-mcp-server: GitHub's official MCP Server
GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.
GitHub - github/github-mcp-server: GitHub's official MCP Server favicon github.com
GitHub - github/github-mcp-server: GitHub's official MCP Server

他にも以下の指摘・関心がスレッドで見られました。

まとめ

全体として、Go言語におけるMCPサーバー開発はまだ発展途上であり、公式SDKの登場が待たれる一方で、既存の非公式SDKを活用した開発や、技術的な課題への取り組みが活発に行われている状況が把握できました。あと、久しぶりにRediit開いたんですが、Xに比べて、濃い議論がされているなと改めて実感しました。


Edit page
Share this post on:

Previous Post
SQLインジェクションから脆弱性について考えてみる
Next Post
GoでE2EE(エンドツーエンド暗号化)を実装してみた