Skip to main content
Glama
udah1

cursor-usage-mcp

Log in to Cursor and capture usage endpoint (fallback auth)

login

Sign in to Cursor through a browser to enable usage monitoring when automatic token access fails. Stores session locally.

Instructions

FALLBACK auth only. By default get_usage needs no login — it reads Cursor's local token from state.vscdb. Use this tool only when that can't work: the MCP runs on a different machine than Cursor, the local DB is unreadable, node:sqlite is unavailable, or CURSOR_USAGE_FORCE_LOGIN is set. It opens a real browser, you log in, and it auto-discovers the usage endpoints and stores your session cookie locally (~/.cursor-usage).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutSecondsNoHow long to wait for login + endpoint discovery. Default 240.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses the key behaviors: opening a real browser, requiring user login, auto-discovery of endpoints, and storing the session cookie locally at ~/.cursor-usage. It could have mentioned the return/result of the tool or failure modes, but the main behavior and side effects are clearly stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three concise sentences, front-loaded with 'FALLBACK auth only.' Each sentence serves a purpose: announcing the fallback nature, specifying conditions for use, and explaining the process and outcome. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's interactive nature and one parameter, the description covers the rationale, conditions, and side effects well. It does not explicitly describe return values, but the absence of an output schema is balanced by the clear behavioral outcome (cookie stored, endpoints discovered). The completeness is strong, though a brief note on results would make it fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter, timeoutSeconds, has 100% schema description coverage ('How long to wait for login + endpoint discovery. Default 240.'). The tool description itself does not elaborate on the parameter, but per the rubric, high schema coverage justifies a baseline score of 3. No additional parameter semantics are needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as a fallback login mechanism, opening a real browser to log in, auto-discovering usage endpoints, and storing the session cookie. It explicitly differentiates from get_usage by stating 'By default get_usage needs no login' and 'Use this tool only when that can't work', making the specific verb+resource+scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance, listing concrete conditions such as the MCP running on a different machine, unreadable local DB, unavailable node:sqlite, or the CURSOR_USAGE_FORCE_LOGIN environment variable. It names the alternative (get_usage) and frames login as a fallback only, which is clear and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/udah1/cursor-usage-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server