deepseek-costs-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deepseek-costs-mcpShow me my DeepSeek account balance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
deepseek-costs-mcp
MCP server for tracking DeepSeek API costs, built on the official DeepSeek API.
Scope
DeepSeek's official API does not expose historical usage/cost analytics (no per-key spend, no per-model token history, no time-series). The only billing-related data it exposes is:
GET /user/balance— current account balance (account-level, not per-key)GET /models— list of models available to your key
This server exposes exactly those two endpoints as MCP tools, plus a local
calculator (deepseek_estimate_cost) that converts token counts you already
have (e.g. from a chat completion's usage field) into an estimated USD cost,
using a static snapshot of DeepSeek's published pricing page. It does not
proxy or log your completions — it has no way to see which key spent what
unless DeepSeek adds that to their API.
Related MCP server: OpenAI MCP Server
Tools
Tool | Calls | Notes |
|
| Total / granted / topped-up balance, per currency |
|
| Models available to the configured key |
| (local calculator) |
|
Pricing snapshot: src/pricing.ts (dated 2026-07-14). Re-check
https://api-docs.deepseek.com/quick_start/pricing/ periodically — DeepSeek can
change prices without a versioned API.
Setup
npm install
npm run buildSet your key:
cp .env.example .env
# edit .env and set DEEPSEEK_API_KEYThe server reads DEEPSEEK_API_KEY from the process environment (not
dotenv-loaded automatically) — whatever MCP client launches it must inject
that variable.
Running standalone
DEEPSEEK_API_KEY=sk-... node dist/index.jsIt speaks MCP over stdio.
Connecting to Hermes Agent
Point Hermes Agent's MCP client config at the built entry point as a stdio server, e.g.:
{
"mcpServers": {
"deepseek-costs": {
"command": "node",
"args": [
"<path>/deepseek-costs/dist/index.js"
],
"env": {
"DEEPSEEK_API_KEY": "sk-..."
}
}
}
}Adjust the config key/path to whatever format Hermes Agent expects for stdio MCP servers. After connecting, the three tools above should show up in its tool list.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gbenm/deepseek-costs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server