crewai - 💡(How to fix) Fix Feature: WhichModel MCP tool for cost-aware model selection in agents [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
crewAIInc/crewAI#5300Fetched 2026-04-09 07:46:03
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
closed ×1

Code Example

{"mcpServers":{"whichmodel":{"url":"https://whichmodel.dev/mcp"}}}
RAW_BUFFERClick to expand / collapse

Feature request

Is your feature request related to a problem?

Agents that dynamically select models often hardcode pricing assumptions that go stale. There's no built-in way for CrewAI agents to check real-time model pricing before selecting a model.

Describe the solution you'd like

WhichModel is a free MCP server that tracks pricing across 100+ models (Anthropic, OpenAI, Google, Meta, Mistral, Cohere, etc.), refreshed every 4 hours. Since CrewAI supports MCP natively, agents can use it with zero integration work.

Setup (one line):

{"mcpServers":{"whichmodel":{"url":"https://whichmodel.dev/mcp"}}}

4 tools available:

  • recommend_model — cost-optimized model suggestions by task type, complexity, budget
  • compare_models — head-to-head comparison with volume cost projections
  • get_pricing — raw pricing data with filters
  • check_price_changes — pricing change tracker

No API key needed for the free tier (1,000 req/mo). MIT licensed.

Use case: A cost-aware CrewAI agent could call recommend_model before selecting a model for each sub-task, routing simple tasks to cheap models and complex tasks to frontier models based on real-time pricing.

Links:

Happy to contribute a WhichModel tool to crewai-tools if there's interest.

extent analysis

TL;DR

Integrate the WhichModel MCP server into CrewAI to enable real-time model pricing checks and dynamic model selection.

Guidance

  • Add the WhichModel MCP server to CrewAI using the provided setup configuration: {"mcpServers":{"whichmodel":{"url":"https://whichmodel.dev/mcp"}}}
  • Utilize the recommend_model tool to receive cost-optimized model suggestions based on task type, complexity, and budget
  • Consider implementing a check for pricing changes using the check_price_changes tool to ensure agents are aware of any updates
  • Review the available tools and documentation on the WhichModel GitHub and website to understand the full capabilities and limitations of the integration

Example

No explicit code example is provided, but the setup configuration is given as:

{"mcpServers":{"whichmodel":{"url":"https://whichmodel.dev/mcp"}}}

Notes

The integration with WhichModel is proposed as a solution to the problem of hardcoded pricing assumptions, but the feasibility and potential impact of this integration on CrewAI agents should be further evaluated.

Recommendation

Apply workaround by integrating the WhichModel MCP server, as it provides a free and MIT-licensed solution for real-time model pricing checks and dynamic model selection, which can help address the issue of stale pricing assumptions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING