# nalediym/touch-grass [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/nalediym/touch-grass  
**GitHub Stars:** 2  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nalediym-touch-grass

## Description
Claude Code plugin and MCP server that nudges you to take outdoor breaks based on local weather, sunset timing, and session streaks. Tools: checkgrassconditions, suggestactivity, logtouchgrass, getstats. Fully local, no API keys, no cloud storage.

## Tools
Capabilities this server exposes over MCP:

- **check_grass_conditions** — Weather, temperature, minutes until sunset, and the user's streak state. Decision context.
- **suggest_activity** — Random activity recommendation, weighted by time of day. Golden hour gets sunset-specific suggestions.
- **log_touch_grass** — Records that the user went outside. Updates their streak. Call only when confirmed.
- **get_stats** — Raw session telemetry and streak history.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/nalediym/touch-grass), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
/plugin install nalediym/touch-grass
```

2. Install:

```sh
git clone https://github.com/nalediym/touch-grass
```

3. Install:

```sh
cd touch-grass/plugin/mcp-server && npm install
```

## Documentation

## What nalediym/touch-grass does

The nalediym/touch-grass MCP server helps an AI coding agent encourage outdoor breaks using current conditions, sunset timing, and the user's local streak state. It exposes four MCP tools: `check_grass_conditions`, `suggest_activity`, `log_touch_grass`, and `get_stats`.

`check_grass_conditions` returns weather, temperature, time remaining before sunset, whether conditions meet the configured threshold, and streak information. `suggest_activity` selects an activity based on the time of day, with sunset-oriented suggestions during golden hour. `log_touch_grass` records a confirmed outing and updates the streak. `get_stats` returns session telemetry and streak history.

The full Claude Code experience also includes a skill and a SessionStart hook. The hook gives the agent weather, sunset, and streak context when a session begins, allowing the agent to decide when a nudge fits the current workflow.

## How it works

At the start of a Claude Code session, the hook reads or resolves the user's location, retrieves weather and sunset information, reads local state, and creates context for the agent. Location lookup uses the public IP through `ip-api.com`; weather and sunset data come from `api.open-meteo.com`. The location result is cached for 24 hours.

The agent can use the injected context to wait for a natural pause, such as after a completed feature, a fixed bug, or a point where it needs user input. When the user confirms they went outside, the agent can call `log_touch_grass`, which writes the updated streak to the local state file.

## Setup and configuration

Install the complete plugin in Claude Code with `/plugin install nalediym/touch-grass`, then open a new session. This provides the hook, skill, and MCP tools.

For Cursor, Claude Desktop, or Codex, clone the repository, run `npm install` in `plugin/mcp-server`, and add the server's `index.mjs` as a Node-based MCP command using an absolute path. These clients receive the four MCP tools but not the Claude Code-specific SessionStart hook.

Configuration is stored in `~/.touch-grass/config.json`. Supported settings include a manually pinned location, the temperature threshold for considering conditions pleasant, the interval after which nudges become firmer, whether the hook is enabled, and custom activities. Setting a fixed location can prevent the IP lookup.

## Tools and capabilities

- Inspect current weather, temperature, sunset timing, and streak state.
- Generate time-sensitive outdoor activity suggestions.
- Record confirmed outdoor sessions and update the streak.
- Read session counts and streak history.
- Store streak and session data locally without API keys, accounts, or cloud storage.

## Limitations and notes

The nalediym/touch-grass MCP server depends on network access for automatic location resolution and weather or sunset retrieval. Its IP lookup sends the public IP to `ip-api.com`, and coordinates are sent to Open-Meteo for session-start data. Streaks, activity notes, prompts, coding schedules, and Claude Code session content remain local according to the project documentation.

The MCP tools are available to compatible clients, but proactive session-start behavior is Claude Code specific. `log_touch_grass` should be called only after the user confirms that they went outside. The hook can be disabled through configuration without uninstalling the plugin.

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

