CastLog MCP

An MCP server for your fishing log that never gives away your spots.

Clone and build
git clone https://github.com/anthonys1760/CastLog-mcp.git && cd CastLog-mcp && npm ci && npm run build

How it works

Your MCP client talks to castlog-mcp. Demo mode ships first: no account, no production data, no outbound calls.

1

Connect a client

Point an MCP client at the server over stdio or Streamable HTTP. The demo does not require a CastLog sign-in.

2

Call read-only tools

The four v1 tools, listed below. Every one is annotated readOnlyHint: true.

3

Demo data answers

Synthetic catches and recorded weather fixtures. No authentication, no production database, and no outbound API calls.

4

Check before leaving

Every response is validated against a strict output schema, then a fail-closed leak guard. Places leave only as aliases like spot-7f3a.

Demo-mode architecture

Demo-mode architecture MCP client to stdio and the stateless demo endpoint, then four read-only tools, bite-core, the leak guard, and synthetic data. Drawbridge is a later optional layer in front. MCP client Cursor, Claude Code, VS Code Later, optional, in front Drawbridge stdio --demo Demo HTTP stateless HTTP 4 read-only tools search, bite, conditions, patterns bite-core leak guard Synthetic data recorded weather fixtures

Tools

Four read-only tools in v1. Bite scores use the same scoring code as the CastLog app. Notes are excluded by default.

Tool What it does Returns Annotations
search_catches Find catches by species, lure category, date range, or conditions. species, date, size, lure category, conditions bucket, spot alias, water type readOnlyHint
bite_score Headline bite score and pressure trend for a spot alias (or a place resolved only on the server). score 0–100, label, pressure, conditions line, optional hourly bars readOnlyHint, idempotentHint
conditions Current conditions for a spot alias. Wind is cardinal only. No location field. temperature, wind, pressure, moon, stale flag readOnlyHint, idempotentHint
similar_weather_patterns What has worked in weather like this, aggregated over the caller’s own catches. matched bucket, top species and lures, size median, by water type, confidence readOnlyHint

search_catches

Find catches by species, lure category, date range, or conditions.

Returns species, date, size, lure category, conditions bucket, spot alias, water type.

readOnlyHint

bite_score

Headline bite score and pressure trend for a spot alias (or a place resolved only on the server).

Returns score 0–100, label, pressure, conditions line, optional hourly bars.

readOnlyHint, idempotentHint

conditions

Current conditions for a spot alias. Wind is cardinal only. No location field.

Returns temperature, wind, pressure, moon, stale flag.

readOnlyHint, idempotentHint

similar_weather_patterns

What has worked in weather like this, aggregated over the caller’s own catches.

Returns matched bucket, top species and lures, size median, by water type, confidence.

readOnlyHint

Sample calls below are a recorded run of node dist/cli.js --demo on protocol 2026-07-28. The bite score 67 / Good bite / Falling −3 over a 6-hour window is that run, and it matches the golden fixture from CastLog PR #151. The page does not name the fixture location. Wind at 2 mph is the calm band.

search_catches

Request and response · demo mode · aliases only

tools/call
{
  "name": "search_catches",
  "arguments": {
    "species": "largemouth bass",
    "lure_category": "soft_plastic",
    "conditions": { "pressure_trend": "falling" },
    "limit": 3
  }
}
structuredContent
{
  "catches": [
    {
      "species": "Largemouth bass",
      "caught_local_date": "2026-11-10",
      "size": { "length_in": 12.5, "weight_lb": 2.6 },
      "lure_category": "soft_plastic",
      "conditions_bucket": {
        "pressure_trend": "falling",
        "wind_band": "calm",
        "cloud_band": "overcast",
        "temp_f_band": "65-75",
        "moon_phase": "Waning gibbous"
      },
      "spot_alias": "spot-7f3a",
      "water_type": "reservoir"
    }
  ],
  "total_estimate": 4
}

bite_score

Request and response · recorded demo run

tools/call
{
  "name": "bite_score",
  "arguments": {
    "where": { "spot_alias": "spot-7f3a" }
  }
}
structuredContent
{
  "score": 67,
  "label": "Good bite",
  "pressure": {
    "direction": "falling",
    "delta_hpa": -3,
    "window_hours": 6,
    "source": "forecast"
  },
  "pressure_note": "Falling -3 / 6h",
  "conditions_line": "Falling pressure · calm wind",
  "species_adjusted": false,
  "weather_stale": false
}

conditions

Request and response · recorded demo fixture · no location field

tools/call
{
  "name": "conditions",
  "arguments": {
    "where": { "spot_alias": "spot-7f3a" }
  }
}
structuredContent
{
  "at": "2026-11-29T21:34:00.000Z",
  "temp_f": 68,
  "feels_like_f": 66,
  "wind_mph": 2,
  "wind_dir_cardinal": "SE",
  "gust_mph": 4,
  "cloud_pct": 80,
  "pressure_inhg": 29.77,
  "pressure_trend": "falling",
  "moon": {
    "phase_name": "Waning gibbous",
    "illumination": 0.72
  },
  "weather_stale": false
}

similar_weather_patterns

Request and response · recorded demo fixture · aggregated

tools/call
{
  "name": "similar_weather_patterns",
  "arguments": {
    "where": { "spot_alias": "spot-7f3a" },
    "species": "largemouth bass"
  }
}
structuredContent
{
  "matched_on": {
    "pressure_trend": "falling",
    "wind_band": "calm",
    "cloud_band": "overcast",
    "temp_f_band": "65-75",
    "moon_phase": "Waning gibbous"
  },
  "sample_size": 14,
  "top_species": [
    { "species": "Largemouth bass", "count": 14 }
  ],
  "top_lures": [
    { "lure_category": "crankbait", "count": 6 },
    { "lure_category": "jig", "count": 6 }
  ],
  "size_median": { "length_in": 13.6, "weight_lb": 2.9 },
  "by_water_type": [
    { "water_type": "reservoir", "count": 14 }
  ],
  "confidence": "medium"
}

Privacy model

Spots appear only as aliases like spot-7f3a, plus a water type. Coordinates, place names, notes, transcripts, photos, and tags are not returned. Demo mode enforces that with a strict output schema and a fail-closed leak guard. Account mode (planned) also enforces it in the database.

Never returned

  • latitudestripped
  • longitudestripped
  • locationstripped
  • lake_idstripped
  • lake_namestripped
  • notesstripped
  • raw_transcriptstripped
  • image_pathstripped
  • tagsstripped

What a tool may return

  • speciesallowlisted
  • caught_local_datedate only
  • sizeparsed numbers
  • lure_categoryenum only
  • conditions_bucketbanded
  • spot_aliasspot-7f3a
  • water_typelake · river · pond · reservoir
R1

Database first

The server never selects from tables. In account mode (planned), restrictive policies block an OAuth token from reading base tables directly.

R2

Allowlisted RPCs

Planned for account mode: only mcp_* functions return data. Demo mode projects an allowlist in process. Aliases are not coordinates.

R3

Strict schema

Every tool has a strict outputSchema with additionalProperties: false. The server validates before returning.

R4

Leak guard

A fail-closed guard rejects any output string that looks like a coordinate pair. Demo mode still runs this path.

Threat model, condensed

From the design’s STRIDE model. The full table lives in the threat-model doc once the repository is public.

Threat Mitigation
Coordinates or place names leak Allowlisted RPCs, aliases, strict schema, fail-closed leak guard, and a redaction suite in CI.
Prompt injection via notes or free text Notes off by default. When opted in later, they are sanitized, capped, and returned in a separate wrapped field. Lure and species are normalized to enums or keys.
Tool-description poisoning or rug-pull Frozen, deterministic tool definitions, hashed in tools.lock.json, with semver and pinned installs.
Over-broad privilege No service role. RPC-only access. Read-only tools in v1. Restrictive policies for OAuth tokens in account mode.
Abuse or cost Per-IP and per-user limits, a weather cache, bounded inputs. Demo mode makes zero outbound calls.
Confused deputy / token misuse Account mode validates audience against this server. Upstream weather uses the server’s own key, never a user token.

Coordinates or place names leak

Allowlisted RPCs, aliases, strict schema, fail-closed leak guard, and a redaction suite in CI.

Prompt injection via notes or free text

Notes off by default. When opted in later, they are sanitized, capped, and returned in a separate wrapped field. Lure and species are normalized to enums or keys.

Tool-description poisoning or rug-pull

Frozen, deterministic tool definitions, hashed in tools.lock.json, with semver and pinned installs.

Over-broad privilege

No service role. RPC-only access. Read-only tools in v1. Restrictive policies for OAuth tokens in account mode.

Abuse or cost

Per-IP and per-user limits, a weather cache, bounded inputs. Demo mode makes zero outbound calls.

Confused deputy / token misuse

Account mode validates audience against this server. Upstream weather uses the server’s own key, never a user token.

Recorded run, not a forecast. On 2026-11-30, test/leak.test.ts and test/redaction.test.ts passed (8 tests): live output of all four tools was clean, all 30 denylist phrases were rejected and not echoed, coordinate, DMS, labeled, high-precision, address, and banned-key fixtures failed closed, a poisoned row did not survive projection, 40 filter combinations stayed on the allowlist, and a cursor for another subject was rejected. Details are in docs/redaction-results.md.

Demo mode and account mode

One codebase, two modes. Demo mode is the v1 headline. Account mode is planned and is not live.

v1 · ships first

Demo mode

Public, unauthenticated, and safe to try in half a minute.

  • Clone the repository, then run node dist/cli.js --demo. Or connect a client to the hosted demo in Quick start. No paid add-on.
  • Synthetic catches and recorded weather fixtures. No production data.
  • No auth and no outbound calls. Anonymous traffic stays off the CastLog project.
  • The full redaction path still runs, so the demo is also a live proof of the privacy model.
Planned

Account mode

Your own journal, behind OAuth 2.1, after the remaining auth and database work lands.

  • Sign in with an existing CastLog account. Every call runs as your user. Row-level security applies.
  • The server calls allowlisted RPCs only. It never uses a service-role key.
  • Hosted as a Streamable HTTP endpoint on a Supabase Edge Function in the CastLog project.
  • Depends on a beta auth feature and on checks that are still open. It is not available in v1.

Drawbridge-ready

Designed to sit behind Drawbridge later

Drawbridge is not integrated in v1. The server is designed so it can be. Demo stdio is intended to work behind Drawbridge today. Account mode waits for Drawbridge’s HTTP client with OAuth.

Ready now: deterministic, hash-pinned tool definitions and honest readOnlyHint / destructiveHint annotations — the signals Drawbridge already pins and reads. When writes arrive in v2, a Drawbridge rule can hold them for approval, and untrusted notes (opt-in, later) use the same wrap convention. See Drawbridge.

Quick start

The package is private. Clone and build, then point a client at dist/cli.js. The hosted Streamable HTTP demo is the last tab. Its URL is the data-demo-url on this section, filled into that tab when the page loads.

Terminal
git clone https://github.com/anthonys1760/CastLog-mcp.git && cd CastLog-mcp && npm ci && npm run build
~/.cursor/mcp.json
{
  "mcpServers": {
    "castlog": {
      "command": "node",
      "args": ["/absolute/path/to/CastLog-mcp/dist/cli.js", "--demo"]
    }
  }
}
.mcp.json
{
  "mcpServers": {
    "castlog": {
      "command": "node",
      "args": ["/absolute/path/to/CastLog-mcp/dist/cli.js", "--demo"]
    }
  }
}
Terminal
claude mcp add castlog -- node /absolute/path/to/CastLog-mcp/dist/cli.js --demo
Claude Code
claude mcp add --transport http castlog-demo __HOSTED_DEMO_URL__
~/.cursor/mcp.json
{
  "mcpServers": {
    "castlog-demo": {
      "url": "__HOSTED_DEMO_URL__"
    }
  }
}