Converse MCP Enhanced

Converse MCP Enhanced

Multi-model AI conversation MCP for Claude Desktop. Seamlessly integrate with GPT-4, Gemini, xAI, Perplexity, and local models via Ollama.

Category
访问服务器

README

Converse MCP Enhanced

MCP License Node Models

Multi-model AI conversation MCP for Claude Desktop. Seamlessly integrate with GPT-4, Gemini, xAI, Perplexity, and local models via Ollama. Achieve 80-95% cost savings through intelligent routing and local model prioritization.

🌟 Features

  • 10+ AI Models: GPT-4, Claude, Gemini, xAI Grok, Perplexity, Ollama
  • 80-95% Cost Savings: Smart routing prioritizes local models via Ollama
  • Parallel Processing: Query multiple models simultaneously for consensus
  • Web Search Integration: Real-time information via Perplexity Sonar
  • Conversation Memory: Persistent context across sessions
  • Smart Fallbacks: Automatic failover to ensure reliability
  • Zero Setup Ollama: Auto-detection and configuration

🚀 Supported Models

API Models

  • OpenAI: GPT-4, GPT-3.5 Turbo
  • Anthropic: Claude 3 Opus, Sonnet, Haiku
  • Google: Gemini Pro, Gemini Ultra
  • xAI: Grok-1, Grok-2
  • Perplexity: Sonar (with web search)

Local Models (via Ollama)

  • Llama 3 (8B, 70B)
  • Mistral, Mixtral
  • CodeLlama
  • Phi-2
  • Neural Chat
  • Any Ollama-compatible model

💰 Cost Optimization Strategy

Priority Order (Highest to Lowest):
1. Ollama local models (FREE) - ALWAYS FIRST
2. Intelligent model selection based on query
3. API models only as fallback

Result: 100% FREE operation when Ollama available

🧠 Smart Model Selection (v1.1.0)

The system automatically selects the optimal Ollama model:

  • Simple queries (<50 chars) → phi3:mini (fastest)
  • Code-related → codellama:7b
  • Complex queries (>200 chars) → qwen2.5-coder:32b
  • Default → llama3.2:3b (balanced)

📦 Installation

Via NPM (Recommended)

npm install -g converse-mcp-enhanced

Manual Installation

git clone https://github.com/justmy2satoshis/converse-mcp-enhanced.git
cd converse-mcp-enhanced
npm install

🔧 Configuration

Add to your Claude Desktop configuration file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "converse": {
      "command": "node",
      "args": ["C:\\path\\to\\converse-mcp-enhanced\\src\\server.js"],
      "env": {
        "OPENAI_API_KEY": "sk-...",
        "GOOGLE_API_KEY": "...",
        "XAI_API_KEY": "...",
        "PERPLEXITY_API_KEY": "...",
        "OLLAMA_HOST": "http://localhost:11434"
      }
    }
  }
}

📖 Usage Examples

Single Model Query

const response = await chat({
  model: "auto",  // Automatic model selection
  prompt: "Explain quantum computing",
  temperature: 0.7
});

Multi-Model Consensus

const consensus = await consensus({
  models: ["gpt-4", "gemini-pro", "llama3"],
  prompt: "Should we use microservices architecture?",
  enable_cross_feedback: true
});

Web Search Integration

const results = await chat({
  model: "perplexity",
  prompt: "Latest developments in AI safety",
  use_websearch: true
});

Cost-Optimized Query

const response = await chat({
  model: "auto",
  prompt: "Generate unit tests for this function",
  prefer_local: true,  // Prioritize Ollama models
  max_cost: 0.01      // Cost limit in USD
});

💡 Use Cases

Development Assistance

  • Code generation with local models (free)
  • Multi-model code review for quality
  • Documentation with web search context

Research & Analysis

  • Consensus building across models
  • Real-time information via Perplexity
  • Complex reasoning with chain-of-thought

Cost Management

  • 95% of queries handled by Ollama
  • API models only for specialized tasks
  • Automatic caching reduces redundant calls

🏗️ Architecture

converse-mcp-enhanced/
├── src/
│   ├── server.js           # Main MCP server
│   ├── models/
│   │   ├── router.js       # Intelligent routing
│   │   ├── ollama.js       # Ollama integration
│   │   └── providers/      # API integrations
│   ├── consensus.js        # Multi-model consensus
│   └── cache.js            # Response caching
├── examples/               # Usage examples
├── tests/                  # Test suite
└── package.json

📊 Performance Metrics

Metric Value Notes
Cost Savings 80-95% Via Ollama prioritization
Response Time <500ms For cached/local
Availability 99.9% With fallbacks
Model Coverage 10+ And growing
Parallel Queries 5+ Simultaneous models

🧪 Testing

npm test

Tests include:

  • Model routing logic
  • Cost optimization algorithms
  • Consensus mechanisms
  • Fallback scenarios

🤝 Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

Priority Areas

  1. Additional model providers
  2. Enhanced caching strategies
  3. Cost optimization improvements
  4. Consensus algorithms

🔒 Security

  • API keys stored securely in environment
  • No logging of sensitive data
  • Local model priority reduces data exposure
  • Optional request encryption

📝 License

MIT License - see LICENSE file for details

🙏 Acknowledgments

  • Anthropic for Model Context Protocol
  • Ollama team for local model infrastructure
  • OpenAI, Google, xAI, Perplexity for APIs
  • Community contributors

📧 Support

🚦 Status

  • ✅ Production Ready
  • ✅ 10+ models integrated
  • ✅ Ollama auto-configuration
  • ✅ Cost optimization active
  • ✅ Claude Desktop compatible

Note: Requires Claude Desktop with MCP support. Ollama recommended for maximum cost savings.

Built with ❤️ for developers who want powerful AI without breaking the bank

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选