
MCP-Server-Go
一个简单的MCP服务器实现
1
Github Watches
0
Github Forks
0
Github Stars
MCP Server Go
A simple stdio MCP server implementation written in Go
Overview
MCP Server Go implements the Model Control Protocol (MCP) over standard input/output streams using JSON-RPC 2.0. This server allows communication with AI models via the MCP protocol.
Building
go build -o mcp_server ./cmd
Usage
./mcp_server
Configuration
Environment variables:
-
MCP_SERVER_NAME
: Custom server name (default: "Baby's First MCP Server") -
MCP_SERVER_VERSION
: Server version (default: "0.1.0")
Components
-
server
: Core server implementation handling JSON-RPC requests -
jsonrpc
: JSON-RPC message types and MCP protocol definitions -
stdio
: Standard IO reader/writer implementation -
safety
: Thread-safe map implementation
Supported Methods
-
initialize
: Server initialization -
resources/list
: List available resources -
resources/read
: Read resource content -
tools/list
: List available tools -
tools/call
: Call a tool
Protocol Version
Implements MCP protocol version "2024-11-05"
相关推荐
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Confidential guide on numerology and astrology, based of GG33 Public information
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Take an adjectivised noun, and create images making it progressively more adjective!
Reviews

user_CMZunC1w
I've been using mcp-server-go by DillonEnge for a while now, and it has been a game-changer. The server implementation is seamless, and it integrates perfectly with my existing system. The performance is top-notch, and it's evident that a lot of thought has gone into its development. If you're looking for a reliable and efficient MCP server, I highly recommend checking it out at https://github.com/DillonEnge/mcp-server-go.