AI Usage for Cursor
io.github.mohitbansal321/ai-usage-mcp
Reports real token usage and cost from Claude Code and OpenCode data. Nothing leaves your machine.
client:Cursor
transport:stdio
runtime:npm
Install AI Usage in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"ai-usage-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ai-usage-mcp"
]
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs