{"type":"mcp_server","name":"spring-ai-mcp-client","description":"This repository provides a Spring AI-based Model Context Protocol (MCP) client for interacting with MCP-supported servers, enabling AI chat interactions using Anthropic and OpenAI models. This repository provides a Spring","category":"AI","language":"Java","stars":45,"forks":0,"owner":"ogulcanarbc","github_url":"https://github.com/ogulcanarbc/spring-ai-mcp-client","homepage":null,"setup":"## Setup\n\n### 1. Clone Repository\n        \n        ```bash\ngit clone <repo-url>\ncd spring-ai-mcp-client\n```\n\n### 2. MCP Server Configuration\n\nThe MCP server information must be added to the mcp-servers.json file as follows.\n\n```json mcpservers.json\n{\n    \"mcpServers\":{\n        \"any-mcp-server\":{\n          \"command\":\"node\",\n          \"args\":[\n            \"any-mcp-server/build/index.js\"\n          ]\n        }\n    }\n}\n ``` \n\n### 3. Spring Configuration\n\nThe application.yml file should be configured as follows:\n\n```yaml\nspring:\n  ai:\n    mcp:\n      client:\n        enabled: true\n        name: any-mcp-server # MCP server name\n        version: 1.0.0\n        type: SYNC\n        request-timeout: 20s\n        stdio:\n          root-change-notification: true\n          servers-configuration: classpath:mcp-servers.json # MCP server config such/same as claude desktop configs.\n    anthropic:\n      api-key: ${ANTHROPIC_API_KEY}\n#   openai:\n#     api-key:  ${OPENAI_API_KEY}  \nserver:\n  port: 8081\n```\n\n### 4. Run Applicaton\n\n    ```bash\nmvn clean install\nmvn spring-boot:run\n```","tools":"## Available Tools\n\n1.  Protocol version negotiation (ensures compatibility with servers)\n2.  Capability negotiation (determines available features)\n3.  Message transport and JSON-RPC communication (handles communication)\n4.  Tool discovery and execution (discovers and executes tools)\n5.  Resource access and management (manages resources)\n6.  Prompt system interactions (interacts with prompt system)\n7.  Optional features like roots management and sampling support (provides additional features)\n8.  Supports openai and anthropic models (supports different models)","faq":null,"created_at":"2025-02-22T19:19:34+00:00","updated_at":"2025-03-28T06:42:37+00:00","source_url":"https://model-context-protocol.com/servers/spring-ai-mcp-client-chat-interactions","related_articles":[]}