MCP server
Mcpspend
Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.2.1
- Listing updated
- 5 days ago
About Mcpspend
Mcpspend is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add mcpspend --env MCPSPEND_API_KEY='<MCPSPEND_API_KEY>' -- npx -y @mcpspend/mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<MCPSPEND_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<MCPSPEND_API_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mcpspend": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<MCPSPEND_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<MCPSPEND_API_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<MCPSPEND_API_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
MCPSPEND_API_KEYYour MCPSpend API key. Create one at https://mcpspend.com/dashboard/keys. Starts with mcps_live_ or mcps_test_. Optional — the server boots and lists tools without it; only tool calls require auth.MCPSPEND_ENDPOINTOptional. Override the MCPSpend API endpoint. Defaults to https://api.mcpspend.com. Use only if you self-host MCPSpend.
Pricing
Open source
Mcpspend FAQ
Is Mcpspend free?
Yes. Mcpspend is open source, so you can use and self-host it for free.
How do I add Mcpspend to Claude Code?
Run this command in your terminal: claude mcp add mcpspend --env MCPSPEND_API_KEY='<MCPSPEND_API_KEY>' -- npx -y @mcpspend/mcp-server
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.