mcpsampling

roryp/mcpsampling
★ 3 stars Java 🤖 AI/LLM Updated 7mo ago
A comprehensive demonstration of the Model Context Protocol (MCP) using Spring AI with multiple AI providers including OpenAI and Ollama. This project showcases how to build both MCP servers and clients that can route requests to different Large Language Models (LLMs) based on model preferences.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcpsampling": {
      "command": "npx",
      "args": [
        "-y",
        "roryp/mcpsampling"
      ]
    }
  }
}