Skip to main content
Glama

Pet Log MCP Server

A local MCP server for household pet care notes: vet-visit histories, medication organizers, weight trends, feeding notes, and on-demand groomer/sitter handoff summaries. Plain Python, standard library only, JSON-RPC over stdio — exactly what an MCP client expects. No network calls, ever.

Education and organizing only. This tool is a notebook, not a vet. It stores and summarizes your own notes; it never gives medical, medication dosing, or feeding advice. Always consult your veterinarian for medical decisions.

Made by Asdale Dynamics, LLC — plain-English AI education and practical local-first tools. Licensed MIT.

Why this exists

The companion project new-pet-first-week-guide is the setup manual for a pet's first days home. This project is the ongoing log: the place where the checkup records, medication schedules the vet gave you (organized by you, corrected by you), weigh-ins from your own scale, food notes, and hand-off notes for the groomer or pet sitter live for the long haul.

Related MCP server: notes-box

How it works

  • One JSON folder you own. All data lives in six plain-JSON files (pets.json, vet_visits.json, medications.json, weights.json, feeding_notes.json, handoff_notes.json) in a single folder. Open it, read it, back it up, keep it in your own cloud drive if you like.

  • MCP-style stdio server. Speaks JSON-RPC 2.0 (the same shape the Model Context Protocol uses) with initialize, notifications/initialized, ping, tools/list, and tools/call. One JSON message per line on stdin, one response per line on stdout; log messages go to stderr only.

  • Zero dependencies at runtime. Python 3.10+ standard library only. pytest is a test-time dependency only.

Tools (13)

Tool

Purpose

add_pet, list_pets

Register and list the pets in the log.

add_vet_visit, list_vet_visits

Build a per-pet vet-visit history.

add_medication, list_medications

Organize the schedules your vet gave you (never dosing advice).

add_weight, weight_trend

Record weigh-ins and see the trend with per-entry change.

add_feeding_note, list_feeding_notes

Log feeding observations, newest first.

add_handoff_note, get_handoff_summary

Groomer/sitter hand-off summaries, assembled on demand.

delete_record

Remove one wrong or duplicated record by id.

Quick start

Run the server directly (no install needed, from the repo folder):

python -m pet_log_mcp

Name the data folder explicitly (default is ./pet-log-data):

PET_LOG_DATA_DIR=/home/you/pet-logs python -m pet_log_mcp

Or install it with pip to get the pet-log-mcp command:

pip install .

Manual smoke test

printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
  '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"add_pet","arguments":{"name":"Mochi","species":"cat"}}}' \
  | python -m pet_log_mcp

Wiring it into an MCP client

Point your MCP client at the process python -m pet_log_mcp (transport: stdio, no args). If the client app stores mcpServers config, a local-first example looks like:

{
  "mcpServers": {
    "pet-log": {
      "command": "python",
      "args": ["-m", "pet_log_mcp"]
    }
  }
}

Set PET_LOG_DATA_DIR in the environment (or add an "env" block, if your client supports it) to keep the JSON folder wherever you keep personal data.

Tests

python -m pytest

The test suite covers the store, every tool (through mocked/fake persistence), the full JSON-RPC protocol surface, and a subprocess end-to-end run of the real stdio server. No test touches the network.

Privacy, first and always

  • Everything stays in the local JSON folder. Nothing is sent anywhere.

  • No telemetry, no analytics, no embedded API keys, no commitments.

  • Because it's your data: adding a pet's name in the log is on you; the file format is plain JSON so you can edit or export anytime.

Disclaimer

Pet Log MCP Server is an organizing and education tool. It does not provide veterinary diagnosis, treatment, dosing, or feeding recommendations and must not be used as a substitute for professional veterinary care.

License

MIT — see LICENSE. Copyright (c) 2026 Asdale Dynamics, LLC.

Available Tools

13 tools
add_feeding_noteLog feeding noteC

Record a feeding observation (what was offered, appetite, notes).

Inputs: pet_name (required), date, food, notes, +2 more.

add_handoff_noteAdd handoff noteB

Add a note meant for a groomer, sitter, or other caretaker.

Inputs: notes (required), audience (required), pet_name (required), date.

add_medicationAdd medication to scheduleA

Record a medication the veterinarian prescribed and the schedule you were told to follow. Organizing only; never dosing advice.

Inputs: name (required), pet_name (required), dose, notes, +2 more.

add_petAdd petC

Add a pet to the log so its notes can be tracked.

Inputs: name (required), notes, species, birth_date.

add_vet_visitLog vet visitC

Record a vet visit in the history for one pet.

Inputs: reason (required), pet_name (required), date, notes, +2 more.

add_weightLog weight entryC

Record one weight measurement (from your own scale or vet report).

Inputs: weight (required), pet_name (required), date, unit.

delete_recordDelete recordA

Remove one wrong or duplicated record by id.

Inputs: id (required), collection (required).

get_handoff_summaryGet handoff summaryB

On-demand summary pulling together handoff notes, medications, the latest feeding, vet visit, and weight for one pet.

Inputs: pet_name (required), audience.

list_feeding_notesList feeding notesB

List recent feeding notes, newest first.

Inputs: limit, pet_name.

list_medicationsList medication scheduleB

List recorded medications and schedules, or only one pet's.

Inputs: pet_name.

list_petsList petsB

List every pet recorded in the log.

Inputs: no named parameters.

list_vet_visitsList vet visitsB

List vet-visit history, or only one pet's visits.

Inputs: pet_name.

weight_trendWeight trendB

Show recorded weights in date order with change between entries.

Inputs: pet_name.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 13 tools

    Disambiguation4/5

    Each resource (pet, vet visit, medication, weight, feeding note, handoff note) has a clearly named add/list pair, so an agent can pick the right tool by resource. Minor overlap exists between get_handoff_summary and the individual list tools since the summary re-surfaces medications, feeding, vet and weight data, and delete_record is generic across record types without stating which ids it accepts.

    Naming Consistency4/5

    Almost all tools follow a snake_case verb_noun pattern (add_pet, list_vet_visits, get_handoff_summary). Deviations are minor but noticeable: weight_trend uses a noun_verb form instead of list_weights, making it the odd one out in the otherwise consistent add/list pairing.

    Tool Count5/5

    Thirteen tools sits comfortably in the ideal range and every tool maps to a distinct record type or a useful aggregate view. Nothing appears redundant or padded, and no obvious operation is missing purely for count reasons.

    Completeness4/5

    The surface covers the full logging lifecycle per resource: add, list, a trend view, a consolidated handoff summary, and a generic delete for corrections. The real gap is update/edit — there is no way to fix a wrong medication schedule or feeding note in place, forcing a delete-and-re-add workaround.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables managing a local JSON notes file through five MCP tools: add, get, update, delete, and list notes, with atomic saves and a write lock.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables any MCP-capable AI app to read and write a single, locally stored, user-owned journal file, so memory persists across different assistants without a cloud account. Entries are append-only and cryptographically chained, with tools for waking briefings, writing notes, searching, pinning, verifying integrity, and exporting backups.
      AGPL 3.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP-capable agents to record, search, update, and export durable project notes from a local SQLite store and coordinate asynchronously through a shared blackboard, all over stdio without cloud infrastructure.
      8
      MIT