A side-by-side look at the MCP Openai and Tokencost Dev MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.
Verdict: choose MCP Openai for conversational ai work as a local process; choose Tokencost Dev for conversational ai as a local process. You can also run both side by side in one mcpServers block.
OPENAI_API_KEY.messages, model.get_model_details, calculate_estimate, compare_models.Rows where the two servers differ are marked.
| Spec | ||
|---|---|---|
| Category | Conversational AI | Conversational AI |
| Quality signal | 55/100 · Good | 60/100 · Good |
| Install command | Confirmed | Confirmed |
| Transport | Local subprocess (stdio) | Local subprocess (stdio) |
| Auth | API key required | Not declared |
| Pricing | BYOK (pay the provider) | Not declared |
| Required env vars | OPENAI_API_KEY | None listed |
| Verified owner | Community listing | Community listing |
| GitHub stars | 77 | 1 |
| Directory activity | 6 views 0 installs 0 upvotes | 1 views 0 installs 0 upvotes |
| Tools | 2 | 4 |
| Full listing | View MCP Openai | View Tokencost Dev |
messagesArray of messages (required)modelWhich model to use (optional, defaults to gpt-4o)get_model_detailsLook up pricing, context window, and capabilities for an LLM model. Uses fuzzy matching so you don't need the exact model key.calculate_estimateEstimate the cost for a given number of input and output tokens on a specific model. Supports optional cached_tokens for prompt caching discounts.compare_modelsFilter and compare models by provider, minimum context window, or mode. Returns top 5 most cost-effective matches.refresh_pricesForce a re-fetch of pricing data from the LiteLLM registry. Use this if you suspect the cached data is stale.Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.
{
"mcpServers": {
"mzxrai-mcp-openai": {
"command": "npx",
"args": [
"-y",
"@mzxrai/mcp-openai@latest"
],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE"
}
}
}
}
{
"mcpServers": {
"tokencost-dev": {
"command": "npx",
"args": [
"-y",
"tokencost-dev"
]
}
}
}