Sponsored by Deepsite.site

📦 mcp-client-go

Created By
yincongcyincong8 months ago
mcp client for Go (Golang). Integrate multiple Model Context Protocol (MCP) servers
Content

📦 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
  • Provide prompt to trigger mcp request doc

📋 Supported Services

MCP ServerDescriptiondocdemo
redisA Model Context Protocol server that provides access to Redis databases.docredis
githubThe GitHub MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with GitHub APIsdocgithub
awsAn MCP server implementation for retrieving information from the AWS Knowledge Base using the Bedrock Agent Runtime.docaws
sequential_thinkingAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.doc-
firecrawlA Model Context Protocol (MCP) server implementation that integrates with Firecrawl for web scraping capabilities.docfirecrawl
postgresqlA Model Context Protocol server that provides read-only access to PostgreSQL databases.doc-
gitlabMCP Server for the GitLab API, enabling project management, file operations, and more.doc-
slackMCP Server for the Slack API, enabling Claude to interact with Slack workspaces.doc-
puppeteerA Model Context Protocol server that provides browser automation capabilities using Puppeteer.doc-
everartImage generation server for Claude Desktop using EverArt's API.doc-
sentryA Model Context Protocol server for retrieving and analyzing issues from Sentry.iodoc-
filesystemNode.js server implementing Model Context Protocol (MCP) for filesystem operations.docfilesystem
fetchA 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-
googlemapMCP Server for the Google Maps API.docgooglemap
flomoThis is a TypeScript-based MCP server help you write notes to Flomo.doc-
chatsumThis MCP Server is used to summarize your chat messages.doc-
amapThis repository is a collection of reference implementations for the Model Context Protocol (MCP), as well as references to community built servers and additional resources.docamap http-streamable
baidumapThis MCP Server is used to baidumapdoc-
blenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP)doc-
framelinkGive Cursor, Windsurf, Cline, and other AI-powered coding tools access to your Figma files with this Model Context Protocol server.doc-
playwrightA Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright.docplaywright sse
tavilyThe 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.doctavily
timeA Model Context Protocol server that provides time and timezone conversion capabilities.doctime uvx
victoriametricsA Model Context Protocol server that provide access to victoria metrics databases.docvictoriametrics
atlassianModel Context Protocol (MCP) server for Atlassian products (Confluence and Jira)doc
notionMCP server for the Notion API.doc
cloudflareMCP Server for Cloudflare's API.doc
binanceMCP Server for Binance's API.doc
youtubeMCP Server for Youtube's API.doc
shopifyMCP Server for Shopify's API.doc
duckduckgoMCP Server for Duckduckgo's API.doc
aliyunMCP Server for Aliyun's API.docaliyun
bilibiliMCP Server for Bilibili's API.docbilibili
bitcoinMCP Server for Bitcoin's API.docbitcoin
airbnbMCP Server for Airbnb's API.docairbnb
jiraMCP Server for Jira's API.doc
twitterMCP Server for Twitter's API.doc
leetcodeMCP Server for Leetcode's API.doc
itermMCP Server for Iterm's API.dociterm
telegramMCP Server for Telegram's API.doctelegram
zoomeyeMCP Server for Zoomeye's API.doc
ipfsMCP Server for IPFS's API.doc
k8sMCP Server for K8s's API.doc
apple-shortcutMCP Server for Apple Shortcut's API.doc
ms-365MCP Server for MS356's API.doc
tinybirdMCP Server for TinyBird's API.doc
mysqlMCP Server for Mysql's API.doc
google calendarMCP Server for Google Calendar's API.doc
sqliteMCP Server for Sqlite's API.doc

🚀 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 project


🧱 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",
})
/
conf := clients.InitSSEMCPClient("npx-amap-maps-mcp-server", "http://127.0.0.1")
/
conf := clients.InitHttpMCPClient("npx-amap-maps-mcp-server", "http://127.0.0.1")

Register MCP Clients

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

Get MCP Client

client, err := clients.GetMCPClient("npx-amap-maps-mcp-server")
/
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.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors