mcpField
C
claims-mcp

claims-mcp

Local
github.com/dgonzap30Memory & Knowledge0Updated 4w ago

About claims-mcp

claims-mcp is a local claim-memory server for agents, where beliefs lose confidence over time. It identifies stale claims and conflicts, storing data in a single SQLite file.

Key features

  1. 01Add, update, and search claims
  2. 02Decay confidence by volatility
  3. 03Confirm or retract claims
  4. 04Detect stale claims and conflicts
  5. 05Export all claims as a resource

Use cases

  1. 01Record an agent’s priority or status judgments about entities
  2. 02Find old claims that need confirmation
  3. 03Detect duplicate ranks or conflicting statuses
  4. 04Check for rank drops using caller-supplied signals

MCP support

It runs as a stdio MCP server, exposing claim-management and inspection tools plus all claims through the `claims://all` resource.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"dgonzap30-claims": {
"command": "npx",
"args": [
"-y",
"claims-mcp"
]
}
}
}
Run commandnpx -y claims-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmclaims-mcp0.1.0

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

claims-mcp

A small memory for agents that treats what it knows as claims that age. You assert a claim about an entity ("acme is priority #1", "the launch is on track"), each claim decays on a half-life set by how volatile it is, and the server tells you which claims have gone stale and which contradict each other.

It is a stdio MCP server plus a CLI over one local SQLite file. No network, no accounts.

Runtime: Bun. v0 uses bun:sqlite, so it runs on Bun ≥ 1.1, not plain Node. A Node build (node:sqlite) is a possible follow-up.

Model

FieldMeaning
entityWhat the claim is about (free text key).
kindpriority (may carry assertedRank), status, fact, relationship.
volatilitystable (half-life 365d), slow (30d), volatile (7d).
confidence0..1 at last confirmation. Effective confidence halves every half-life since lastConfirmed, floored at 0.05.
stateactive, stale, contradicted, retired. Only active claims are checked.

A claim's identity is (entity, kind, claim): asserting it again updates it rather than duplicating.

MCP tools

ToolDoes
claim_addAssert or update a claim.
claim_searchCase-insensitive substring search over claim text and entity.
claim_confirmRe-confirm now: resets decay, reactivates, optionally sets confidence.
claim_retractRetire a claim.
claims_contradictionsConflicts among active claims: duplicate-rank (two entities claim the same priority rank), status-conflict (several active status claims for one entity). Pass observed weekly ranks to also get rank-drop: an asserted-priority entity that every signal ranks worse than rank + 2 for 3 valid periods.
claims_decayedActive claims past a staleness threshold (default 0.5), stalest first.

Resource: claims://all (every claim as JSON).

observed is { "signals": [{ "<entity>": [rank_now, rank_1_period_ago, ...] }, ...], "validPeriods": [true, ...] }. You supply the observations (commit counts, time spent, anything you can rank); the server does not collect them.

Use

bun install

Add to an MCP client (Claude Code shown):

claude mcp add claims -- bun /path/to/claims-mcp/src/mcp.ts

The database lives at ~/.claims-mcp/claims.db; override with --db <path> or CLAIMS_MCP_DB.

CLI:

bun src/cli.ts add acme priority slow 0.8 "acme comes first" --rank 1
bun src/cli.ts search comes
bun src/cli.ts stale 0.5
bun src/cli.ts contradictions
bun src/cli.ts confirm <id>
bun src/cli.ts retract <id>

Development

bun test          # 19 tests, synthetic claims only
bun run typecheck
bun run audit     # publish gate: home paths, private names, secret patterns

Set AUDIT_TERMS="name1|name2" to add your own private names to the audit.

Provenance

Not a straight extraction. The decay curve and the rank-drop rule are ported from a personal agent memory (rank-drop now takes caller-supplied observations); the duplicate-rank and status-conflict rules are new claim-vs-claim logic written for this package. It shares no code, data or storage with the original.

Author

Built by Diego González Zapiain at Lojik Labs. Listed on the official MCP Registry as io.github.dgonzap30/claims-mcp.

Licence

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.