# pls-touch-grass [Health: Active]

**Category:** 🛠️ Other Tools and Integrations  
**Repository:** https://github.com/Rinava/pls-touch-grass-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 266  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pls-touch-grass

## Description
An MCP server that knows how long it's been since you touched grass

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What pls-touch-grass does

pls-touch-grass turns outdoor-break tracking into a set of MCP tools. It records when someone went outside, measures time spent indoors, checks whether a break is due, reacts to frustrated messages, reports local weather, and finds nearby parks. The server is intentionally playful, but its implementation demonstrates tool descriptions, shared state, network-backed tools, and fallback behavior.

Five tools are exposed:

- `touched_grass` records an outdoor visit and resets the frustration counter.
- `gotta_go` checks whether indoor time has exceeded the configured tolerance.
- `frustration_detector` responds to signs of anger and escalates the suggestion to go outside.
- `grass_conditions` retrieves current weather through Open-Meteo.
- `where_to_touch_grass` finds parks and distances using OpenStreetMap data.

## How it works

The default transport is local stdio. The published npm package can be launched with `npx -y pls-touch-grass-mcp`, allowing an MCP client to start it on demand. A source checkout can instead run the compiled `dist/index.js` entry point.

State is kept in `~/.pls-touch-grass.json`. The default indoor threshold is two minutes, although a caller can ask `gotta_go` to use a different `threshold_minutes` value. Location is resolved from the machine's IP address on each run at city-level precision. If that lookup fails, the server uses the last known location and then a fallback location. A neighborhood or street address supplied to `where_to_touch_grass` takes precedence and remains available for later use; neighborhoods can resolve offline, while other places are geocoded once through OpenStreetMap's Nominatim service.

Weather comes from Open-Meteo and does not require an API key. The demo mode, enabled by adding `--demo` to the launch arguments, uses fixed responses and avoids network requests.

## Setup and configuration

For Claude Code, register the npm command with:

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

Cursor can use the same `npx` command in global `~/.cursor/mcp.json` or project-level `.cursor/mcp.json`. Claude Desktop can install the `.mcpb` package from a GitHub Release, or use the equivalent stdio JSON configuration. A Claude plugin is also available from the repository's `plugin/` directory.

To build from source, clone the repository, run `npm ci`, and then run `npm run build`. Configure the client to execute `node /absolute/path/to/dist/index.js`. The npm package is published as `pls-touch-grass-mcp`, and the server is listed in the MCP Registry as `io.github.Rinava/pls-touch-grass`.

## Limitations and notes

The server is designed for local use over stdio. It cannot be used directly as a claude.ai custom connector because that requires a remote HTTPS server; HTTP transport is listed as future work. IP location is deliberately city-level, and network-dependent lookups can fall back to prior or fixed locations. The demo data is canned rather than live. Thresholds are stored globally in the local state file rather than per project, and consecutive-day streak tracking is not included.

_Full upstream README: https://allmcps.com/mcp/pls-touch-grass/readme_

