Skip to main content
Glama

habitscore-mcp

MCP server for Habitscore — analytics over anything with a recurring completion history.

Two families of tools, one engine:

  • Operational reliability — score recurring tasks, jobs, pipelines and scheduled workflows. Success rate, streak recovery, lapse risk, latency-trend warnings, and remediation ranked by priority.

  • Behavioural analytics — the same scoring over habit and routine data. Adherence, consistency, momentum, lapse risk, next-best actions, multi-week plans.

Pays per call with x402: USDC on Base, no account, no API key, no subscription. From $0.03 per call.

Walkthrough with a working x402 client example: https://mydev-tools.tech/agents/reliability/

Why it works this way

The server runs on your machine with your wallet. It signs payments locally and the private key never leaves the process. Nothing is custodied on our side and there is no account to create — the same promise the HTTP API makes.

Without a wallet configured, every tool still works in quote-only mode: it returns the price and the payment terms instead of erroring, so you can see what a call would cost before funding anything.

Related MCP server: ulvane-mcp

Install

// Claude Desktop: claude_desktop_config.json
// Cursor:         ~/.cursor/mcp.json
{
  "mcpServers": {
    "habitscore": {
      "command": "npx",
      "args": ["-y", "habitscore-mcp"],
      "env": {
        "HABITSCORE_PRIVATE_KEY": "0x…",
        "HABITSCORE_MAX_SPEND_USD": "0.25"
      }
    }
  }
}

Omit HABITSCORE_PRIVATE_KEY to start in quote-only mode.

Wallet

Use a dedicated wallet holding only what you intend to spend. Fund it with a small amount of USDC on Base (contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). You do not need ETH: under EIP-3009 you sign the authorisation off-chain and the facilitator submits the transaction and pays the gas.

HABITSCORE_MAX_SPEND_USD caps what a single tool call may spend, and is checked against the price the server actually quotes before anything is signed. An agent loop that retries a paid tool can otherwise spend without bound, and you are the one paying — so a server that quotes more than you authorised is refused rather than paid.

Tools

Tool

Price

Returns

analyze_reliability

$0.08

Reliability score and grade per task, lapse risk, latency-trend warnings, priority-ranked remediation

analyze_behaviour

$0.05

Adherence and consistency scores, streak momentum, lapse-risk flags, highlights, watchouts, recommendations

recommend_next_actions

$0.03

Ranked next-best action per habit with rationale and priority

extract_insights

$0.05

Condensed patterns, correlations and risk signals

build_habit_plan

$0.10

Multi-week plan for one habit: weekly targets and dated milestones

Price is per call, not per habit. analyze_behaviour accepts up to 25 habits for the same $0.05, so batching is by far the cheapest way to use this.

Input

Reliability:

{
  "system": "billing-pipeline",
  "tasks": [
    {
      "name": "nightly-etl",
      "success_rate": 0.83,
      "current_streak": 0,
      "best_streak": 52,
      "runs": 210,
      "latency_trend": "rising",
      "p95_latency_ms": 38000,
      "cadence": "daily",
      "critical": true
    }
  ]
}

name, success_rate (0–1), current_streak and best_streak are required. Note that latency_trend: "rising" is the degradation signal — the opposite polarity to the behavioural tools, where a falling trend is the warning.

Behavioural:

{
  "habits": [
    {
      "name": "Morning run",
      "completion_rate": 0.72,
      "current_streak": 9,
      "best_streak": 21,
      "average_mood": 7.4,
      "energy_trend": "rising"
    }
  ]
}

name, completion_rate (0–1), current_streak and best_streak are required. average_mood, mood_correlation, energy_trend and risk_score are optional and sharpen the result.

"Habit" is the domain vocabulary, but the analysis applies to any recurring activity with completion history — training schedules, medication adherence, study routines, recurring operational tasks.

What it does not do

The engine is deterministic and CPU-only: threshold rules and arithmetic over the numbers you supply. Same input, same output, every time.

It is not a language model and does not generate prose beyond composing its findings. It does not store anything — the agent endpoints are stateless, accept no user identifier, and cannot read or infer any stored history. It is not medical, psychological or financial advice.

Environment

Variable

Default

Purpose

HABITSCORE_PRIVATE_KEY

—

Wallet key for signing payments. Omit for quote-only mode.

HABITSCORE_MAX_SPEND_USD

0.25

Hard cap per tool call, enforced before signing.

HABITSCORE_API_URL

https://api.mydev-tools.tech

API origin.

BASE_RPC_URL

https://mainnet.base.org

Base RPC for balance reads and signing context.

Verifying a charge

Every successful paid call appends the settlement transaction hash to the tool output. Open it on basescan.org to confirm the amount and recipient independently of anything this server reports.

Volume rebate

Verified spend earns credits back — 5% from $10 lifetime, 10% from $100, 15% from $1,000, with higher rate limits at each tier. Credits are returned inline in the response that earns them and are redeemed with an X-Agent-Credit header on a later call.

MIT licensed.

Available Tools

5 tools
analyze_behaviourA

Behavioural analysis over up to 25 habits or recurring activities in one call. Returns adherence and consistency scores, streak momentum, lapse-risk flags, highlights, watchouts and recommendations. Use for adherence monitoring, routine optimisation, engagement and churn-risk signals, and streak analysis. Costs $0.05 in USDC on Base.

Inputs: habits (required).

analyze_reliabilityA

Reliability analysis for up to 25 recurring tasks, jobs, pipelines or scheduled workflows in one call. Returns a reliability score and grade (healthy/degrading/unstable/failing) per task, lapse risk, streak recovery, latency-trend warnings, and remediation actions ranked by priority so the list is actionable top-down. Use for cron and pipeline monitoring, flaky-job triage, SLA and uptime adherence, agent task reliability, and deciding what to fix first. Deterministic threshold analysis over the figures you supply — no model, no log parsing, no root-cause inference. Costs $0.08 in USDC on Base.

Inputs: tasks (required), system.

build_habit_planB

Multi-week plan for ONE habit: weekly targets and dated milestones over a chosen horizon. The most compute-intensive endpoint. Costs $0.10 in USDC on Base.

Inputs: habit (required), horizon_days.

extract_insightsA

Condensed behavioural highlights and watchouts — patterns, correlations and risk signals — without the full aggregate breakdown. Use when you want the narrative rather than the numbers. Costs $0.05 in USDC on Base.

Inputs: habits (required).

recommend_next_actionsA

Ranked next-best action per habit, each with a rationale and a priority score. The cheapest endpoint, deterministic and CPU-only, so it is suitable for high-frequency loops. Costs $0.03 in USDC on Base.

Inputs: habits (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation3/5

    analyze_behaviour, extract_insights and recommend_next_actions all operate on the same habit data and return overlapping artefacts (highlights, watchouts, recommendations), so the boundary between 'full analysis', 'narrative only', and 'next actions only' requires reading descriptions carefully. analyze_reliability vs analyze_behaviour is clearer (tasks/jobs vs habits) but still conceptually adjacent.

    Naming Consistency5/5

    All five names follow a strict verb_noun snake_case pattern (analyze_*, recommend_*, extract_*, build_*), so intent and grouping are immediately predictable. No mixed camelCase or vague single-word verbs.

    Tool Count4/5

    Five tools is well within a healthy scope for an analysis-only service and each maps to a distinct output tier. Slight redundancy: extract_insights looks like a trimmed slice of analyze_behaviour rather than an independent capability.

    Completeness3/5

    Coverage is analysis-only: there is no way to record, update or query stored habit/task data, so every call must supply its own figures. Planning exists for a single habit but not for task/pipeline remediation or multi-habit plans, which leaves some obvious lifecycle gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Trust layer for AI agents: 22 pay-per-call x402 tools for scam and fraud checks, payment pre-flight, wallet screening, policy approvals, contact extraction and company research. Free preview with no wallet; paid calls settle in USDC on Base.
      22
      80 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides onchain intelligence tools for Base, including token risk checks, wallet PnL, and leaderboard data, with paid calls settled per-request in USDC via x402.
      14 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to check an EVM address on Base for risk (safe, caution, danger) before sending funds, with reasons, paid per call via x402 from the user's own wallet.
      7
      94 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to run honeypot and owner-power safety checks on Base tokens and to read wallet ETH and USDC balances, with every answer sourced from real chain data and paid per call in USDC via x402.
      MIT