An AI-to-AI consultation system for complex problem-solving and reasoning, using OpenRouter for model access.
An AI-to-AI consultation system that enables one AI to "phone a friend" (another AI) for critical thinking, long context reasoning, and complex problem solving via OpenRouter.
Sometimes an AI encounters complex problems that require:
Phone-a-Friend MCP Server creates a two-step consultation process:
This enables AI systems to leverage other AI models as "consultants" for complex reasoning tasks.
Primary AI โ Phone-a-Friend MCP โ OpenRouter โ External AI (O3, Claude, etc.) โ Processed Response โ Primary AI
Sequential Workflow:
analyze_context
- Gather and structure all relevant contextget_critical_thinking
- Send context to external AI via OpenRouter for reasoningextract_actionable_insights
- Process response into actionable formatIdeal for:
Configure your MCP client (e.g., Claude Desktop) using the JSON block belowโno cloning or manual installation required.
The uv
runner will automatically download and execute the server package if it isn't present.
Add the following JSON configuration to your MCP client and replace <YOUR_API_KEY>
with your key:
{
"mcpServers": {
"phone-a-friend": {
"command": "uvx",
"args": [
"phone-a-friend-mcp-server",
"--provider", "openai",
"--api-key", "<YOUR_API_KEY>"
]
}
}
}
That's it! You can now use the
phone_a_friend
tool in any compatible client. For more options, see the Advanced Configuration section.
๐ Consult external AI for critical thinking and complex reasoning. Makes API calls to get responses.
๐ Generate master prompt file for manual AI consultation. Creates file for copy-paste workflow.
Parameters
phone_a_friend
all_related_context
(required): General, non-code context such as constraints, tracebacks, or high-level requirements.file_list
(required): Array of file paths or glob patterns. Just pass the paths โ the server automatically reads those files (skips anything in .gitignore
or non-text/binary) and builds the full code context for the external AI.task
(required): A clear, specific description of what you want the external AI to do.fax_a_friend
all_related_context
(required): Same as above.file_list
(required): Same as above.task
(required): Same as above.output_directory
(required): Directory where the generated fax_a_friend.md
master prompt file will be saved.This section covers all configuration options, including environment variables, CLI flags, and model selection.
The server can be configured via CLI flags or environment variables.
Provider | CLI Flag | Environment Variable |
---|---|---|
OpenAI | --provider openai | OPENAI_API_KEY |
OpenRouter | --provider openrouter | OPENROUTER_API_KEY |
Anthropic | --provider anthropic | ANTHROPIC_API_KEY |
--provider google | GOOGLE_API_KEY |
CLI Example:
phone-a-friend-mcp-server --provider openai --api-key "sk-..."
Environment Variable Example:
export OPENAI_API_KEY="sk-..."
phone-a-friend-mcp-server
You can override the default model for each provider.
Provider | Default Model |
---|---|
OpenAI | o3 |
Anthropic | Claude 4 Opus |
Gemini 2.5 Pro Preview 05-06 | |
OpenRouter | anthropic/claude-4-opus |
Override with CLI:
phone-a-friend-mcp-server --model "o3"
Override with Environment Variable:
export PHONE_A_FRIEND_MODEL="o3"
Feature | CLI Flag | Environment Variable | Default |
---|---|---|---|
Temperature | --temperature 0.5 | PHONE_A_FRIEND_TEMPERATURE | 0.4 |
Base URL | --base-url ... | PHONE_A_FRIEND_BASE_URL | Provider default |
MIT License - see LICENSE file for details.
Simple MCP Server to enable a human-in-the-loop workflow in tools like Cline and Cursor.
Schedule and manage Zoom meetings with AI assistance. Requires Zoom API credentials for configuration.
Connect to any function, any language, across network boundaries using AgentRPC.
Interact with the Clash of Clans API to retrieve game data. Requires a CLASH_API_KEY environment variable.
integrates with Bluesky API to query and search feeds and posts.
Chat with any other OpenAI SDK Compatible Chat Completions API, like Perplexity, Groq, xAI and more
Integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
Provides AI assistants with comprehensive access to Cisco Webex messaging capabilities.
Access Reddit's public API to browse frontpage posts, subreddit information, and read post comments.
A server for interacting with LinkedIn, including authentication and posting capabilities.