Connect a client
Point an MCP client at the server over stdio or Streamable HTTP. The demo does not require a CastLog sign-in.
CastLog MCP
An MCP server for your fishing log that never gives away your spots.
git clone https://github.com/anthonys1760/CastLog-mcp.git && cd CastLog-mcp && npm ci && npm run build
Your MCP client talks to castlog-mcp. Demo mode ships first: no account, no production data, no outbound calls.
Point an MCP client at the server over stdio or Streamable HTTP. The demo does not require a CastLog sign-in.
The four v1 tools, listed below. Every one is annotated readOnlyHint: true.
Synthetic catches and recorded weather fixtures. No authentication, no production database, and no outbound API calls.
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 v1
Account mode Planned
Demo-mode architecture
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 |
Find catches by species, lure category, date range, or conditions.
Returns species, date, size, lure category, conditions bucket, spot alias, water type.
readOnlyHint
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
Current conditions for a spot alias. Wind is cardinal only. No location field.
Returns temperature, wind, pressure, moon, stale flag.
readOnlyHint, idempotentHint
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.
{
"name": "search_catches",
"arguments": {
"species": "largemouth bass",
"lure_category": "soft_plastic",
"conditions": { "pressure_trend": "falling" },
"limit": 3
}
}
{
"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
}
{
"name": "bite_score",
"arguments": {
"where": { "spot_alias": "spot-7f3a" }
}
}
{
"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
}
{
"name": "conditions",
"arguments": {
"where": { "spot_alias": "spot-7f3a" }
}
}
{
"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
}
{
"name": "similar_weather_patterns",
"arguments": {
"where": { "spot_alias": "spot-7f3a" },
"species": "largemouth bass"
}
}
{
"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"
}
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.
The server never selects from tables. In account mode (planned), restrictive policies block an OAuth token from reading base tables directly.
Planned for account mode: only mcp_* functions return data. Demo mode projects an allowlist in process. Aliases are not coordinates.
Every tool has a strict outputSchema with additionalProperties: false. The server validates before returning.
A fail-closed guard rejects any output string that looks like a coordinate pair. Demo mode still runs this path.
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. |
Allowlisted RPCs, aliases, strict schema, fail-closed leak guard, and a redaction suite in CI.
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.
Frozen, deterministic tool definitions, hashed in tools.lock.json, with semver and pinned installs.
No service role. RPC-only access. Read-only tools in v1. Restrictive policies for OAuth tokens in account mode.
Per-IP and per-user limits, a weather cache, bounded inputs. Demo mode makes zero outbound calls.
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.
One codebase, two modes. Demo mode is the v1 headline. Account mode is planned and is not live.
Public, unauthenticated, and safe to try in half a minute.
node dist/cli.js --demo. Or connect a client to the hosted demo in Quick start. No paid add-on.Your own journal, behind OAuth 2.1, after the remaining auth and database work lands.
Drawbridge-ready
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.
Coming later Not in v1
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.
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.
git clone https://github.com/anthonys1760/CastLog-mcp.git && cd CastLog-mcp && npm ci && npm run build
{
"mcpServers": {
"castlog": {
"command": "node",
"args": ["/absolute/path/to/CastLog-mcp/dist/cli.js", "--demo"]
}
}
}
{
"mcpServers": {
"castlog": {
"command": "node",
"args": ["/absolute/path/to/CastLog-mcp/dist/cli.js", "--demo"]
}
}
}
claude mcp add castlog -- node /absolute/path/to/CastLog-mcp/dist/cli.js --demo
claude mcp add --transport http castlog-demo __HOSTED_DEMO_URL__
{
"mcpServers": {
"castlog-demo": {
"url": "__HOSTED_DEMO_URL__"
}
}
}