Cover image
Try Now
2025-04-15

MCP客户端。集成多个MCP服务器

3 years

Works with Finder

4

Github Watches

4

Github Forks

41

Github Stars

📦 mcp-client-go

mcp-client-go is a Golang client library for the Model Context Protocol (MCP). It allows developers to register and interact with various MCP-based services such as Amap (Gaode Maps) using a unified API.


✨ Features

  • Easy integration with MCP-compatible services
  • Modular support for service types (e.g., Amap, Github, GoogleMap)
  • Unified registration and client management
  • Simple and intuitive tool execution interface

📋 Supported Services

MCP Server Description doc demo
redis A Model Context Protocol server that provides access to Redis databases. doc redis
github The GitHub MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with GitHub APIs doc github
aws An MCP server implementation for retrieving information from the AWS Knowledge Base using the Bedrock Agent Runtime. doc aws
sequential_thinking An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process. doc -
firecrawl A Model Context Protocol (MCP) server implementation that integrates with Firecrawl for web scraping capabilities. doc firecrawl
postgresql A Model Context Protocol server that provides read-only access to PostgreSQL databases. doc -
gitlab MCP Server for the GitLab API, enabling project management, file operations, and more. doc -
slack MCP Server for the Slack API, enabling Claude to interact with Slack workspaces. doc -
puppeteer A Model Context Protocol server that provides browser automation capabilities using Puppeteer. doc -
everart Image generation server for Claude Desktop using EverArt's API. doc -
sentry A Model Context Protocol server for retrieving and analyzing issues from Sentry.io doc -
filesystem Node.js server implementing Model Context Protocol (MCP) for filesystem operations. doc filesystem
fetch A Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption. doc -
googlemap MCP Server for the Google Maps API. doc googlemap
flomo This is a TypeScript-based MCP server help you write notes to Flomo. doc -
chatsum This MCP Server is used to summarize your chat messages. doc -
amap This repository is a collection of reference implementations for the Model Context Protocol (MCP), as well as references to community built servers and additional resources. doc amap
baidumap This MCP Server is used to baidumap doc -
blender BlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP) doc -
framelink Give Cursor, Windsurf, Cline, and other AI-powered coding tools access to your Figma files with this Model Context Protocol server. doc -
playwright A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. doc playwright sse
tavily The Model Context Protocol (MCP) is an open standard that enables AI systems to interact seamlessly with various data sources and tools, facilitating secure, two-way connections. doc tavily
time A Model Context Protocol server that provides time and timezone conversion capabilities. doc time uvx
victoriametrics A Model Context Protocol server that provide access to victoria metrics databases. doc victoriametrics

🚀 Getting Started

Install

install npx, uvx, docker, and put them to env!

go get github.com/yincongcyincong/mcp-client-go

🧪 Example

client demo
app demo
deepseek demo
openai demo


🧱 API Overview

Initialize Clients

conf := clients.InitStdioMCPClient("npx-amap-maps-mcp-server", "npx", []string{
"AMAP_MAPS_API_KEY=" + AmapApiKey,
}, []string{
"-y",
"@amap/amap-maps-mcp-server",
}, mcp.InitializeRequest{}, nil, nil)
/
conf := clients.InitSSEMCPClient("npx-amap-maps-mcp-server", "http://127.0.0.1", nil, nil, nil)

Register MCP Clients

clients.RegisterMCPClient(ctx, []*param.MCPClientConf{conf})

Get MCP Client

client, err := clients.GetMCPClient(amap.NpxAmapMapsMcpServer)
/
client, err := clients.GetMCPClientByToolName("geo_location")

Execute Tools

client.ExecTools(ctx, "tool_name", map[string]interface{}{...})

📄 License

This project is licensed under the MIT License.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

    Reviews

    1 (1)
    Avatar
    user_28dYRzgc
    2025-04-17

    As a devoted user of the mcp-client-go, I am impressed with its seamless integration and robust functionality. Developed by yincongcyincong, this client greatly simplifies Go application development by providing a reliable MCP interface. The thorough documentation and active community support on GitHub ensure that both novice and experienced developers can utilize it efficiently. Highly recommended for anyone looking to streamline their Go projects!