mcp-consultant
MCP server that interfaces with Gemini and OpenAI CLI tools to enable AI model interactions. It provides a bridge to external AI CLIs with predefined model configurations.
README
mcp-consultant
Simplified fork of PAL MCP Server for uctoteka project. Supports only Gemini and OpenAI providers with predefined model configurations.
Features
- Gemini CLI integration:
gemini-3-pro-preview(default),gemini-3-flash-preview(fast) - OpenAI/Codex integration:
gpt-5.2withxhighthinking mode - Removed providers: Azure OpenAI, XAI, DIAL, OpenRouter, Custom API
- Fixed model mode: No "auto" mode - models are explicitly configured
- MCP protocol: Full Model Context Protocol support for Claude Code
Installation
cd /home/pavel/vyvoj_sw/mcp-consultant
pip install --break-system-packages -e .
Configuration
CLI Clients
Located in conf/cli_clients/:
Gemini (gemini.json):
{
"name": "gemini",
"command": "gemini",
"roles": {
"default": {"role_args": ["--model", "gemini-3-pro-preview"]},
"flash": {"role_args": ["--model", "gemini-3-flash-preview"]}
}
}
Codex (codex.json):
{
"name": "codex",
"command": "codex",
"additional_args": ["exec", "--json", "--model", "gpt-5.2"],
"roles": {
"default": {"role_args": ["--config", "model_reasoning_effort=\"xhigh\""]}
}
}
Environment Variables
# Required for actual API calls (optional for listmodels/version)
export GEMINI_API_KEY="your_key_here"
export OPENAI_API_KEY="your_openai_key_here"
Usage
Standalone
mcp-consultant
Via Claude Code
The server is registered in uctoteka-clink-consult plugin at:
/home/pavel/vyvoj_sw/uctoteka_app/claude-marketplace/uctoteka-clink-consult/mcp/pal.mcp.json
Configuration:
{
"mcpServers": {
"pal": {
"command": "/home/pavel/.local/bin/mcp-consultant",
"env": {
"CLI_CLIENTS_CONFIG_PATH": "${CLAUDE_PLUGIN_ROOT}/cli_clients",
"DEFAULT_MODEL": "gemini-3-pro-preview"
}
}
}
}
Available Tools
clink- Bridge to external AI CLIs (Gemini, Codex)listmodels- List available models per providerversion- Show server version and configuration
Model Comparison
| Model | Thinking | Latence | Use case |
|---|---|---|---|
gemini-3-pro-preview |
high | ~47s | Complex analysis |
gemini-3-flash-preview |
- | ~13s | Quick queries |
gpt-5.2 (codex) |
xhigh | ~31s | Max reasoning, code + web |
Development
Project structure:
mcp-consultant/
├── clink/ # CLI integration (agents, parsers, registry)
├── providers/ # Model providers (Gemini, OpenAI)
├── tools/ # MCP tools (clink, listmodels, version)
├── conf/ # Configuration files
├── systemprompts/ # System prompts for CLIs
├── server.py # Main MCP server
├── config.py # Configuration constants
└── pyproject.toml # Package definition
Original project: PAL MCP Server
Fork changes:
- Removed Azure OpenAI, XAI, DIAL, OpenRouter, Custom providers
- Fixed DEFAULT_MODEL to
gemini-3-pro-preview - Disabled auto mode (IS_AUTO_MODE = False)
- Server starts without API keys (for listmodels/version)
- Simplified to 2 CLI clients: gemini, codex
Version
1.0.0 - Initial fork for uctoteka
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.