{"_id":"@calcis/mcp-server","_rev":"4-ec8ba318f063a2652a3ee47156482f38","name":"@calcis/mcp-server","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@calcis/mcp-server","version":"1.0.0","keywords":["calcis","mcp","model-context-protocol","llm","cost","claude","cursor"],"license":"MIT","_id":"@calcis/mcp-server@1.0.0","maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"homepage":"https://www.calcis.dev","bugs":{"url":"https://github.com/rc397/Calcis/issues"},"bin":{"calcis-mcp":"dist/index.js"},"dist":{"shasum":"80be26c3715700a066d9ad3f12b8766e759b6248","tarball":"https://registry.npmjs.org/@calcis/mcp-server/-/mcp-server-1.0.0.tgz","fileCount":7,"integrity":"sha512-8u/6YlD4h08MY1aQObb/QfFUp4eoptOCwkVyMDuCxtr2c39AAn8/ADCu2+1WmoLsc6d4Du7rJf7MsaPP42mNng==","signatures":[{"sig":"MEQCIBsHhjHRaZK269X0BLSDTv9tcJLbsjaEdin0FcTbGjtVAiB2He0wiCAP5hHQduft3jxzoHvhp4MO/aPyjldmHE67Ug==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23161},"main":"dist/index.js","type":"module","gitHead":"ef75cec281a791905f837f7167fde6606d93c92f","scripts":{"build":"npm run copy-pricing && tsc","copy-pricing":"node -e \"require('node:fs').copyFileSync('../../packages/pricing/index.json','./pricing.json')\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"calcis","email":"calcis.dev@gmail.com"},"repository":{"url":"git+https://github.com/rc397/Calcis.git","type":"git"},"_npmVersion":"11.4.2","description":"MCP server for Calcis: LLM cost estimation for AI agents","directories":{},"_nodeVersion":"24.4.1","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server_1.0.0_1776596599232_0.2059038618068998","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@calcis/mcp-server","version":"1.0.1","keywords":["calcis","mcp","model-context-protocol","llm","cost","claude","cursor"],"license":"MIT","_id":"@calcis/mcp-server@1.0.1","maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"homepage":"https://www.calcis.dev","bugs":{"url":"https://github.com/rc397/Calcis/issues"},"bin":{"calcis-mcp":"dist/index.js"},"dist":{"shasum":"147431ebb8b8351f4a4388297a2527483e6e5e12","tarball":"https://registry.npmjs.org/@calcis/mcp-server/-/mcp-server-1.0.1.tgz","fileCount":7,"integrity":"sha512-nVP+HJPVF1/gX3gnomGXWmEJS9XHATZ8cyuM3l971Y4P25vHvIQmEHni2HzTuQLBSInhmZtpsO8EC/GNoz5dDA==","signatures":[{"sig":"MEUCIQDggyKtnxyCbjXsctFyQkWxpcvkRiutsPEEwIaM7LdYLQIgIYvUnnqKzrEIwUfNTS+lmTepymUMXt2ez469MenXDbo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23238},"main":"dist/index.js","type":"module","gitHead":"2ac0279a067083da14424b97edaf969cbc69b3c8","scripts":{"build":"npm run copy-pricing && tsc","copy-pricing":"node -e \"require('node:fs').copyFileSync('../../packages/pricing/index.json','./pricing.json')\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"calcis","email":"calcis.dev@gmail.com"},"repository":{"url":"git+https://github.com/rc397/Calcis.git","type":"git"},"_npmVersion":"11.4.2","description":"MCP server for Calcis: LLM cost estimation for AI agents","directories":{},"_nodeVersion":"24.4.1","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server_1.0.1_1776940131385_0.4260267499864594","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@calcis/mcp-server","version":"1.0.2","keywords":["calcis","mcp","model-context-protocol","llm","cost","claude","cursor"],"license":"MIT","_id":"@calcis/mcp-server@1.0.2","maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"homepage":"https://www.calcis.dev","bugs":{"url":"https://github.com/rc397/Calcis/issues"},"bin":{"calcis-mcp":"dist/index.js"},"dist":{"shasum":"b1180398478122f3f6d54a1fb30e79d1ca4dbea5","tarball":"https://registry.npmjs.org/@calcis/mcp-server/-/mcp-server-1.0.2.tgz","fileCount":7,"integrity":"sha512-bgdFuqztzs9UBEmgZFS1D77MiH2QYLrzduWGjdWYKg+wUHmmwO9Rgr/VwIV9nnNyuNLm2yxrdq+Fu5HYs/2Qkw==","signatures":[{"sig":"MEUCIBk4/UuD/1iat/Bs+UGLavridzozyPqjZb/QFXpJpX+gAiEA6VYplF52VtJGB+XywOCS+KjCMZKhpc+nBJYHuztF95A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23769},"main":"dist/index.js","type":"module","gitHead":"2ac0279a067083da14424b97edaf969cbc69b3c8","scripts":{"build":"npm run copy-pricing && tsc","copy-pricing":"node -e \"require('node:fs').copyFileSync('../../packages/pricing/index.json','./pricing.json')\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"calcis","email":"calcis.dev@gmail.com"},"repository":{"url":"git+https://github.com/rc397/Calcis.git","type":"git"},"_npmVersion":"11.4.2","description":"MCP server for Calcis: LLM cost estimation for AI agents","directories":{},"_nodeVersion":"24.4.1","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server_1.0.2_1776941428022_0.2823557729454538","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@calcis/mcp-server","version":"1.0.4","description":"MCP server for Calcis: LLM cost estimation for AI agents","license":"MIT","type":"module","main":"dist/index.js","bin":{"calcis-mcp":"dist/index.js"},"scripts":{"copy-pricing":"node -e \"require('node:fs').copyFileSync('../../packages/pricing/index.json','./pricing.json')\"","build":"npm run copy-pricing && tsc","prepublishOnly":"npm run build"},"keywords":["calcis","mcp","model-context-protocol","llm","cost","claude","cursor"],"dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0"},"repository":{"type":"git","url":"git+https://github.com/rc397/Calcis.git"},"homepage":"https://www.calcis.dev","_id":"@calcis/mcp-server@1.0.4","gitHead":"862b57a8fc4e016ca36906c9c0ddea082f4c38b9","bugs":{"url":"https://github.com/rc397/Calcis/issues"},"_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-20HWmEoY7+qjmIBBlD3kk1Q3xTjOuhAWEYQFOST+yCgRNkFx7H6rdWF04cPPhPpYYIFfnJLSSxqOUwUScBvFKg==","shasum":"9ddf41f393979c4b66360f7d2f8f18ba06049b76","tarball":"https://registry.npmjs.org/@calcis/mcp-server/-/mcp-server-1.0.4.tgz","fileCount":7,"unpackedSize":23728,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGAy12hi8DXVAEk8JO43Zl75Ku4Mdb9dKJaNM2V8BMaTAiEAtzvq+eXaxJoo/fU+JZVkIs69mDA3FQFnHqgXEX9kbC0="}]},"_npmUser":{"name":"calcis","email":"calcis.dev@gmail.com"},"directories":{},"maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server_1.0.4_1777117479944_0.14471656693879176"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-19T11:03:19.152Z","modified":"2026-04-25T11:44:40.223Z","1.0.0":"2026-04-19T11:03:19.381Z","1.0.1":"2026-04-23T10:28:51.509Z","1.0.2":"2026-04-23T10:50:28.169Z","1.0.4":"2026-04-25T11:44:40.101Z"},"bugs":{"url":"https://github.com/rc397/Calcis/issues"},"license":"MIT","homepage":"https://www.calcis.dev","keywords":["calcis","mcp","model-context-protocol","llm","cost","claude","cursor"],"repository":{"type":"git","url":"git+https://github.com/rc397/Calcis.git"},"description":"MCP server for Calcis: LLM cost estimation for AI agents","maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"readme":"# @calcis/mcp-server\r\n\r\nModel Context Protocol server for [Calcis](https://www.calcis.dev).\r\n\r\n> **Live pricing for 25+ models, side-by-side comparisons, and a web estimator: https://calcis.dev**\r\n>\r\n> - Full price index: https://calcis.dev/models\r\n> - Compare models: https://calcis.dev/compare\r\n> - API reference: https://calcis.dev/api-docs\r\n\r\nExposes three tools that AI agents (Claude Desktop, Cursor, Cline, and\r\nanything else MCP-compatible) can call directly:\r\n\r\n| Tool            | What it does                                                       | Needs API key? |\r\n| --------------- | ------------------------------------------------------------------ | -------------- |\r\n| `estimate_cost` | Pre-flight cost estimate for a prompt + model                      | yes            |\r\n| `list_models`   | Returns every supported model with current pricing                 | no             |\r\n| `compare_models`| Side-by-side cost comparison between two models at a token count   | no             |\r\n\r\n`list_models` and `compare_models` ship with the pricing dataset\r\nembedded, so they work offline.\r\n\r\n## Install\r\n\r\nOnce published, the server runs via `npx`:\r\n\r\n```bash\r\nnpx @calcis/mcp-server\r\n```\r\n\r\nOr install globally:\r\n\r\n```bash\r\nnpm install -g @calcis/mcp-server\r\ncalcis-mcp\r\n```\r\n\r\nGet your API key for `estimate_cost` at [calcis.dev/dashboard](https://calcis.dev/dashboard).\r\n\r\n## Claude Desktop\r\n\r\nEdit `~/Library/Application Support/Claude/claude_desktop_config.json`\r\n(macOS) or the equivalent on other platforms:\r\n\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"calcis\": {\r\n      \"command\": \"npx\",\r\n      \"args\": [\"@calcis/mcp-server\"],\r\n      \"env\": {\r\n        \"CALCIS_API_KEY\": \"calc_your_key_here\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nRestart Claude Desktop. The Calcis tools will now appear in the\r\navailable tools list for every conversation.\r\n\r\n## Cursor\r\n\r\nIn **Settings → Features → Model Context Protocol**, add:\r\n\r\n- **Name:** `calcis`\r\n- **Command:** `npx`\r\n- **Args:** `@calcis/mcp-server`\r\n- **Env:** `CALCIS_API_KEY=calc_your_key_here`\r\n\r\n## Tools\r\n\r\n### `estimate_cost`\r\n\r\nPre-flight estimate for any prompt / model pair.\r\n\r\nInput:\r\n\r\n```json\r\n{\r\n  \"prompt\": \"Explain quantum computing in three bullets\",\r\n  \"model\": \"claude-sonnet-4-6\",\r\n  \"systemPrompt\": \"You are a concise technical writer.\"\r\n}\r\n```\r\n\r\nReturns the Calcis API response JSON (model, inputTokens,\r\noutputTokens, inputCost, outputCost, totalCost, confidence).\r\n\r\n### `list_models`\r\n\r\nNo input. Returns `{ version, generatedAt, source, models[] }`\r\nwhere each model has `id`, `displayName`, `provider`,\r\n`inputPricePerMTok`, `outputPricePerMTok`, `contextWindow`,\r\n`maxOutput`, and `lastUpdated`. Browse the same dataset on the web\r\nat [calcis.dev/models](https://calcis.dev/models).\r\n\r\n### `compare_models`\r\n\r\n```json\r\n{\r\n  \"modelA\": \"claude-sonnet-4-6\",\r\n  \"modelB\": \"gpt-4o\",\r\n  \"inputTokens\": 1000,\r\n  \"outputTokens\": 500\r\n}\r\n```\r\n\r\nReturns per-model breakdowns plus `deltaTotal` (cost(B) − cost(A))\r\nand `cheaper` (the model ID that wins on total cost). For an\r\ninteractive, multi-model version see [calcis.dev/compare](https://calcis.dev/compare).\r\n\r\n## Config\r\n\r\n| Env var           | Required for                | Notes                      |\r\n| ----------------- | --------------------------- | -------------------------- |\r\n| `CALCIS_API_KEY`  | `estimate_cost`             | Pro plan or above          |\r\n\r\nThe other two tools read the embedded pricing dataset: no API key,\r\nno network call.\r\n\r\n## Links\r\n\r\n- [Web App](https://www.calcis.dev)\r\n- [API Docs](https://www.calcis.dev/api-docs)\r\n- [Pricing dataset (`@calcis/pricing`)](https://www.npmjs.com/package/@calcis/pricing)\r\n- [CLI (`calcis`)](https://www.npmjs.com/package/calcis)\r\n- [GitHub Action](https://github.com/marketplace/actions/calcis-llm-cost-estimate)\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}