auto-mcp-client
@down-to-earth1994
Basic information
About auto-mcp-client
基于Spring AI 封装了 mcp-client 服务,目的使web网页智能体也能通过 stdio 和 HTTP SSE(Server-Sent Events) 与 MCP Server 进行交互。项目实现了自动化的连接管理机制,包括自动初始化连接、健康检查、超时关闭以及链接复用等功能
Overview
What is auto-mcp-client?
auto-mcp-client is a Java project based on Spring AI 1.0.0-M7 that encapsulates the mcp-client service. It supports communication with MCP Servers via stdio and HTTP SSE, and provides automatic connection management including initialization, health checks, timeout closing, and connection reuse. It is designed for Java developers building multi-agent or LLM-integrated applications.
How to use auto-mcp-client?
Ensure JDK 17+ and Maven/Gradle are installed. Configure bootstrap.yml with Nacos configuration center and import the mcp-client-dev.yml config. Modify the built-in default-mcp-registry.json to set your own API keys and MCP server addresses. Also set the node service path in the configuration file. The default model is Alibaba Bailian’s qwen2.5-72b-instruct (OpenAI protocol), but you can switch to a private OpenAI-compatible model.
Key features of auto-mcp-client
- Multi-protocol support: stdio and HTTP SSE
- Automatic connection initialization on startup
- Automatic health checks for connection availability
- Automatic timeout closing to release idle connections
- Connection reuse within timeout windows
- Environment isolation between multiple agents using the same MCP server
Use cases of auto-mcp-client
- Compare weather between cities and generate bar charts
- Analyze database data (e.g., Fujian GDP top 5) and create pie charts
- Extract content from web pages and summarize into Markdown
FAQ from auto-mcp-client
What models does auto-mcp-client support?
It supports Alibaba Bailian’s qwen2.5-72b-instruct by default (OpenAI protocol) and can be configured to use any private OpenAI-compatible model.
How does it connect to MCP servers?
It uses stdio (local subprocess) or HTTP SSE (Server-Sent Events) to communicate with MCP servers.
Is there automatic reconnection or health monitoring?
Yes, the client periodically checks connection health and automatically reinitializes or closes connections as needed.
Is pricing mentioned?
No, the README does not discuss pricing or licensing.
Are there any known limitations?
The README does not list any specific limitations.
More Agent Frameworks MCP clients
🌟 MCPM - Model Context Protocol Manager
pathintegral-instituteCLI MCP package manager & registry for all platforms and all clients. Search & configure MCP servers. Advanced Router & Profile features.
Unified MCP Client Library
pietrozullomcp-use is the easiest way to interact with mcp servers with custom agents
Novu - Connect your AI agents & products to customers
NovuNovu is the open-source communication layer for AI agents. An agent built on Novu connects to MCP servers like Linear, GitHub, and Notion for its tools, then talks with your users on Slack, Microsoft Teams, WhatsApp, Tel
mcp-cli
wong2A CLI inspector for the Model Context Protocol
Nerve
evilsocketThe Simple Agent Development Kit.
Comments