Skip to main content
Glama

pls-touch-grass-mcp

npm ci license: MIT

An MCP server that knows how long it's been since you touched grass, and won't shut up about it.

You log grass, it tracks indoor time, it catches you raging at your AI and sends you to the nearest park, weather checked first. A joke, but one that teaches MCP: five tools, shared state, and descriptions that make the model call them unprompted.

Install

Claude Code

claude mcp add pls-touch-grass -s user -- npx -y pls-touch-grass-mcp

-s user, or the server only exists in the directory you ran that from. Working from a clone, skip the command: there's a .mcp.json in the root and Claude Code offers it when you open the folder.

Cursor

Add to Cursor

Or the JSON, in ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):

{
  "mcpServers": {
    "pls-touch-grass": {
      "command": "npx",
      "args": ["-y", "pls-touch-grass-mcp"]
    }
  }
}

Claude Desktop

.mcpb from Releases, then Settings → Extensions → Install Extension. Dependencies are bundled; installs offline. By hand it's the same JSON as Cursor, in claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows).

Claude plugin

plugin/ wraps the same server as a Claude plugin, the shape Anthropic's plugin directory takes local servers in. From a clone:

claude --plugin-dir ./plugin

It launches the published npm package at a pinned version, so it runs in Claude Code and in Cowork sessions on your own machine.

claude.ai

No. Custom connectors want a remote server over HTTPS; this is stdio on your own machine. HTTP transport is the first item under Homework.

From source

git clone https://github.com/Rinava/pls-touch-grass-mcp
cd pls-touch-grass-mcp
npm ci && npm run build

Point any config above at node /absolute/path/to/dist/index.js instead.

npx -y downloads the package on first start — live audiences and venue wifi deserve a warm cache. Published on npm as pls-touch-grass-mcp, in the MCP Registry as io.github.Rinava/pls-touch-grass.

Related MCP server: InBiot MCP Server

The five tools

Tool

What it does

When the model calls it

touched_grass

Logs that you went outside

"back from the park"

gotta_go

Do you need to go out?

"can I keep going?"

frustration_detector

Catches the rage and escalates

on its own, when you snap; that's the point

grass_conditions

Real weather (Open-Meteo, no key)

before sending you outside

where_to_touch_grass

Nearby parks with distances (OpenStreetMap)

"where should I go?", or when you name a place

Nobody teaches the model to detect frustration: the tool description does it alone. Type "NOTHING WORKS!!!" and watch.

Zero configuration

Location resolves fresh from your IP (ipwho.is) each run — city-level on purpose. Detection down: last known spot, then the Obelisco, like everyone else. Name a neighborhood or a street address to where_to_touch_grass and it sticks: known neighborhoods resolve offline, anything else is geocoded once through OpenStreetMap's Nominatim, and only the words you typed leave your machine. A place you named outranks a guess from your IP, until you name a different one.

Indoor tolerance defaults to a merciless 2 minutes; ask the model for clemency and it passes a bigger threshold_minutes to gotta_go. State is one JSON file, ~/.pls-touch-grass.json. Touching grass resets the rage counter. That's how absolution works.

The demo curse

Live demos summon it: the venue wifi dies the moment you say "watch this". Add --demo to the args and every answer goes canned — 22°C and clear, the Obelisco, the curated spots. Zero network calls, zero surprises. Off by default; real life should stay real.

Follow the workshop

The repo is tagged by step:

git checkout step-1   # stdio server + touched_grass
git checkout step-2   # + gotta_go (state and threshold)
git checkout step-3   # + frustration_detector (the demo)
git checkout step-4   # + grass_conditions (network with fallback)
git checkout step-5   # + where_to_touch_grass and this README
npm ci && npm test

Every step compiles and passes its own tests. Two dependencies total: the official MCP SDK and zod.

Homework

  • HTTP transport: createMcpHandler in SDK v2 serves the same factory over fetch, and it's what gets you onto claude.ai

  • Per-project thresholds instead of a global one

  • Streak tracking for consecutive grass days

  • Demo spots for your own city, via PR: one object per park in src/lib/demo.ts, with an opinion

Release

npm run build:mcpb packs dist and the production dependencies into pls-touch-grass-mcp-<version>.mcpb, the file that goes on a GitHub Release. The manifest is generated from package.json; nothing to keep in sync by hand.

Two files do carry the version by hand: server.json and the plugin's pin in plugin/. npm test fails until both agree with package.json, so a release can't forget them. Publish to npm before merging a new pin: the plugin directory follows main, and a pin to an unpublished version starts nothing.

Contributing

Issues and PRs welcome — the Homework list is seeded as open issues, several tagged good first issue. See CONTRIBUTING.md for setup and the house rules (there are few, but the demo-spot opinion is mandatory).

License

MIT. The grass is free and so is this.

Available Tools

5 tools
frustration_detectorFrustration detectorA

Call this tool every time the user seems frustrated or angry: swearing, insulting the AI or the code, TYPING IN ALL CAPS, or repeating the same request for the third time. Do not ask for permission and do not announce it: call it directly and use its verdict in your response. Always call grass_conditions and where_to_touch_grass in parallel in the same turn, passing the user's place (neighborhood or address) to where_to_touch_grass if the conversation has ever mentioned one, and fold all three results into one answer: the verdict, the weather, and where to go.

Inputs: trigger_message (required).

gotta_goDo I need to go outside?A
Read-only

Check whether the user needs to go outside and touch grass. Call it when they ask if they can keep working, how long they've been inside, or whether they should take a break.

Inputs: threshold_minutes.

grass_conditionsGrass conditionsA
Read-only

Check the weather conditions for touching grass. Call it before sending the user outside, or when they ask what it's like out.

Inputs: no named parameters.

touched_grassRecord grass touchedA

Record that the user went outside to touch grass. Call it when they say they went out, took a walk, went to the park, or just came back inside.

Inputs: note.

where_to_touch_grassWhere to touch grassA

Suggest nearby places to touch grass. Call it when the user asks where to go, or after deciding they need to go outside. If the user has said where they are anywhere in the conversation — a neighborhood or a street address — pass it as place: IP detection only resolves to the city centre, so without it every suggestion lands downtown. Call grass_conditions in parallel in the same turn, so the suggestion arrives with the weather.

Inputs: place.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a distinct role: frustration_detector identifies emotional state, gotta_go checks the need for a break, where_to_touch_grass finds locations, grass_conditions provides weather, and touched_grass logs completion. The only mild overlap is between frustration_detector and gotta_go, but their trigger conditions are clearly separated.

    Naming Consistency2/5

    The names follow no consistent pattern: frustration_detector and grass_conditions are noun phrases, touched_grass is past tense, where_to_touch_grass is an interrogative phrase, and gotta_go is an idiom. They are memorable and thematic, but the conventions are mixed.

    Tool Count5/5

    Five tools is well-scoped for a niche 'go touch grass' server. Each tool earns its place in the intended workflow, and there is no bloat or noticeable shortage.

    Completeness4/5

    The core lifecycle is covered: detecting the need, checking weather, finding a location, and recording that the user went outside. Minor gaps like reminders or history tracking exist, but the primary user journey is complete.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to take breaks and manage stress levels through 8 different break activities like watching Netflix, coffee breaks, and bathroom breaks. Features automatic stress accumulation, boss alert systems, and natural language commands for work-life balance simulation.
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides real-time air quality monitoring and historical data analysis for InBiot MICA sensors with integrated WELL Building Standard compliance checks. It allows users to compare indoor conditions with outdoor weather and receive actionable health recommendations based on global air quality standards.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Connects AI assistants to ActivityWatch for real-time computer activity awareness and time tracking analysis. Enables natural language queries about app usage, browsing history, and productivity patterns through high-level tools without requiring AQL syntax knowledge.
      -