
anthropic mcp ai
使用MCP协议跟踪API请求生命周期,并通过AI生成技术总结。
Repository Info
About This Server
使用MCP协议跟踪API请求生命周期,并通过AI生成技术总结。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
🧠 Name Analyzer with AI
This project is a Proof of Concept (POC) for implementing the Model Context Protocol (MCP) to track the full lifecycle of an API request, enrich it with structured data, and use AI (GPT-4o / GPT-3.5) to generate an automatic technical summary.
🚀 Features
- 🧾 Request lifecycle trace using the
MCPContextabstraction - 🌐 External API integrations:
agify.io→ estimate agegenderize.io→ estimate gender
- 🧠 AI-powered analysis using OpenAI's GPT models
- 📄 OpenAPI 3.0 documentation served via Swagger UI
- 📦 Clean architecture using Spring Boot 3 + Java 17
📐 Architecture
Client
|
v
/analyze [POST] <----> AnalyzeController
|
v
AnalyzerService
|
+------------+------------+
| |
AgifyClient GenderizeClient
| |
+------------+------------+
|
MCPContext ← records full trace
|
v
IAService → OpenAI call
|
v
AnalyzeResponse (enriched)
🔧 Tech Stack
- Java 17 ☕️
- Spring Boot 3 ⚙️
- Spring WebFlux (WebClient) 🌐
- Lombok 🧬
- OpenAI API (Chat Completions – GPT-4o / GPT-3.5) 🤖
📥 How to Run
# Clone the repository
git clone https://github.com/your-username/anthropic-mcp-ai.git
cd anthropic-mcp-ai
# Make sure you have Java 17 installed
./mvnw spring-boot:run
🔐 Environment Configuration
Set these variables in your environment or in a .env file:
OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXXXXXXXXX
These values will be loaded via the AIProperties class using @ConfigurationProperties.
🧪 Try It
Once the server is running, access:
- Swagger UI: http://localhost:8080/swagger-ui.html
- Try a POST to
/analyzewith:
{
"name": "gabriel"
}
You will receive a structured response with the AI-generated explanation in the technicalExplanation field.
Enjoy! 😉
Quick Start
Clone the repository
git clone https://github.com/gabrieldsguilherme/anthropic-mcp-aiInstall dependencies
cd anthropic-mcp-ai
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.