Skip to main content
Glama
ClockNext

ClockNext MCP Server

Official
by ClockNext

@clocknext/mcp

The ClockNext MCP server — meter usage, verify signals, and manage usage‑based billing directly from AI coding tools (Claude Code, Cursor, Codex, Antigravity) and any other Model Context Protocol client.

It runs locally over stdio: your AI tool spawns it as a subprocess, and your organisation's cnk_… API key stays in the server's environment — never in the model's context.

In Claude Code:

/plugin marketplace add ClockNext/clocknext-mcp
/plugin install clocknext@clocknext

Claude Code prompts for your ClockNext API key at install (stored securely) and wires the server up automatically — no manual config, no env vars. Run /mcp to confirm the clocknext tools are available.

Related MCP server: 0nMCP

Manual setup (other MCP clients)

You need a ClockNext API key (Settings → API Keys). Then add the server to your tool's MCP config.

Claude Code

claude mcp add clocknext --env CLOCKNEXT_API_KEY=cnk_your_key -- npx -y @clocknext/mcp

Cursor / Windsurf / Antigravity.cursor/mcp.json (or the tool's MCP JSON):

{
  "mcpServers": {
    "clocknext": {
      "command": "npx",
      "args": ["-y", "@clocknext/mcp"],
      "env": { "CLOCKNEXT_API_KEY": "cnk_your_key" }
    }
  }
}

Codex~/.codex/config.toml:

[mcp_servers.clocknext]
command = "npx"
args = ["-y", "@clocknext/mcp"]
env = { CLOCKNEXT_API_KEY = "cnk_your_key" }

Environment

Variable

Required

Description

CLOCKNEXT_API_KEY

yes

Your org's cnk_… key (Settings → API Keys).

CLOCKNEXT_BASE_URL

no

Override the API origin (e.g. a staging URL). Defaults to production.

Tools

Tool

What it does

clocknext_whoami

Identify the org behind the key and whether it's sandbox or live. Call first.

clocknext_list_models

List enabled models + USD prices per 1M tokens. Use a modelId in signals.

clocknext_verify_signal

Dry run — validate + price a signal without recording it. Preflight your setup.

clocknext_record_usage

Record one real (billed) usage signal. Supports an idempotencyKey for safe retries.

A typical agent flow: whoamilist_modelsverify_signal (confirm the customer/model/plan price correctly) → record_usage.

Development

npm install          # links the local @clocknext/sdk (file:../clocknext-sdk)
npm run build        # tsup → dist/index.js (executable bin)
npm run dev          # run from source via tsx
CLOCKNEXT_API_KEY=cnk_... npm start

Built on the official @modelcontextprotocol/sdk over @clocknext/sdk. stdio today; a hosted Streamable‑HTTP variant is planned. Logs go to stderr (stdout is the protocol channel).

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    Enables access to Usage and Billing APIs for managing accounts, products, meters, plans, and usage reporting. Supports operations like creating products/plans, reporting usage, and retrieving billing information.
    Last updated
    18
    MIT
  • F
    license
    -
    quality
    -
    maintenance
    Universal AI API Orchestrator. 850 tools across 53 services under a single MCP interface. Connect Claude, GPT, or Gemini to Stripe, Slack, GitHub, LinkedIn, Cloudflare, Shopify, Twilio, and 46 more via natural language. $0.10/execution, no subscription. Patent Pending.
    Last updated
    390
    5
  • A
    license
    -
    quality
    C
    maintenance
    Connect engineering metrics, DORA performance, deploy risk scoring, and PR health to any AI assistant. Score PRs for deployment risk using a 36-signal model, query team health, incidents, coverage, and more.
    Last updated
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Real-time Claude.ai subscription awareness for AI coding assistants. Surfaces live utilization, forecasts limits, gates expensive operations, and measures real per-task cost.
    Last updated
    5
    30
    6
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

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/ClockNext/clocknext-mcp'

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