独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
M

modelcontextprotocol/go-sdk

Official Go SDK for MCP servers and clients

装之前:没有可直接复制的命令 · 许可证未标注 · 链接可访问

第一步:这条暂时没有可执行的下一步,可先看原仓库 https://github.com/modelcontextprotocol/go-sdk

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网

我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →

来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
评分构成
综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# MCP Go SDK

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

This repository contains an implementation of the official Go software
development kit (SDK) for the Model Context Protocol (MCP).
## Package / Feature documentation
The SDK consists of several importable packages:
The
github.com/modelcontextprotocol/go-sdk/mcp
package defines the primary APIs for constructing and using MCP clients and
servers.
The
github.com/modelcontextprotocol/go-sdk/jsonrpc package is for users implementing
their own transports.
The
github.com/modelcontextprotocol/go-sdk/auth
package provides some primitives for supporting OAuth.
The
github.com/modelcontextprotocol/go-sdk/oauthex
package provides extensions to the OAuth protocol, such as ProtectedResourceMetadata.
The SDK endeavors to implement the full MCP spec. The docs/ directory
contains feature documentation, mapping the MCP spec to the packages above.
## Version Compatibility
The following table shows which versions of the Go SDK support which versions of the MCP specification:
| SDK Version | Latest MCP Spec | All Supported MCP Specs |
| v1.7.0+ | 2026-07-28 | 2026-07-28, 2025-11-25\, 2025-06-18, 2025-03-26, 2024-11-05 |
| v1.4.0 - v1.6.1 | 2025-11-25\ | 2025-11-25\, 2025-06-18, 2025-03-26, 2024-11-05 |
| v1.2.0 - v1.3.1 | 2025-11-25\\ | 2025-11-25\\, 2025-06-18, 2025-03-26, 2024-11-05 |
| v1.0.0 - v1.1.0 | 2025-06-18 | 2025-06-18, 2025-03-26, 2024-11-05 |
\ Client side OAuth has experimental support.
\\ Partial support for 2025-11-25 (client side OAuth and Sampling with tools not available).
The roots, sampling, and logging features are deprecated as of protocol version
2026-07-28 by
SEP-2577.
The SDK continues to support them for compatibility during the deprecation
window (at least twelve months). See the individual feature documentation for
migration guidance.
New releases of the SDK target only supported versions of Go. See
https://go.dev/doc/devel/release#policy for more information.
## Getting started
To get started creating an MCP server, create an mcp.Server instance, add
features to it, and then run it over an mcp.Transport. For example, this
server adds a single simple tool, and then connects it to clients over
stdin/stdout:
go
package main
import (
"context"
"log"
"github.com/modelcontextprotocol/go-sdk/mcp"
type Input struct {
Name string json:"name" jsonschema:"the name of the person to greet"
type Output struct {
Greeting string json:"greeting" jsonschema:"the greeting to tell to the user"
func SayHi(ctx context.Context, req mcp.CallToolRequest, input Input) (
mcp.CallToolResult,
Output,
error,
) {
return nil, Output{Greeting: "Hi " + input.Name}, nil
func main() {
// Create a server with a single tool.
server := mcp.NewServer(&mcp.Implementation{Name: "greeter", Version: "v1.0.0"}, nil)
mcp.AddTool(server, &mcp.Tool{Name: "greet", Description: "say hi"}, SayHi)
// Run the server over stdin/stdout, until the client disconnects.
if err := server.Run(context.Background(), &mcp.StdioTransport{}); err != nil {
log.Fatal(err)
To communicate with that server, create an mcp.Client and connect it to the
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/modelcontextprotocol-go-sdk/)
来源
awesome · https://github.com/modelcontextprotocol/go-sdk
按领域浏览
MCP 服务
收录来源
10 个独立来源
收录于
今天

同类推荐

全部 6,229 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引