Touch Grass logo

Touch Grass

by nalediym

Local MCP tools for weather-aware outdoor breaks, activity suggestions, streak logging, and session statistics.

Install Touch Grass

Run the project’s own setup commands, in order.

Setup steps from the project

nalediym/touch-grass installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    /plugin install nalediym/touch-grass
    
  2. 2. Install
    git clone https://github.com/nalediym/touch-grass
    
  3. 3. Install
    cd touch-grass/plugin/mcp-server && npm install
    

Overview

The nalediym/touch-grass MCP server gives agents four local-first tools for deciding when to suggest an outdoor break and recording confirmed sessions. It combines weather and sunset data with a locally stored streak and session history; the Claude Code plugin also injects context at session start. Use it when an agent should make break suggestions based on conditions rather than fixed timers. Other MCP clients can use the tools directly, but the proactive SessionStart hook is specific to Claude Code.

Use cases

  • Check whether outdoor conditions are suitable during a coding session
  • Suggest an activity based on the time of day or sunset
  • Log a confirmed outdoor break and update the user's streak
  • Inspect local session telemetry and streak history

Key features

  • Weather and sunset-aware break context
  • Time-weighted activity suggestions
  • Local streak and session tracking
  • Claude Code SessionStart hook
  • Configurable location and weather threshold
  • No API keys or cloud storage

Tools4

What Touch Grass lets your agent do. Expand a tool for its parameters.

Self-reported~95 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/25 checks healthy over the last 117d

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 1Medium 0Low 0

Scanned 8/29/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Touch Grass works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Touch Grass

nalediym/touch-grass is an MCP server that connects an AI agent to local streak and session data plus weather and sunset services. Its main tools check outdoor conditions, suggest an activity, log a confirmed outing, and return statistics. The Claude Code plugin can also inject context when a session starts.

Install it in Claude Code with `/plugin install nalediym/touch-grass`. For Cursor, Claude Desktop, or Codex, clone the repository, run `npm install` in `plugin/mcp-server`, and add `index.mjs` as a Node MCP command with its absolute path.

Yes, Cursor can use the four MCP tools through a standard Node MCP configuration. It does not receive the Claude Code-specific SessionStart hook, so the agent will not proactively receive the injected break context at session start.

No, it does not require API keys. Automatic operation uses the public IP with `ip-api.com` for location and sends coordinates to `api.open-meteo.com` for weather and sunset data.

It stores streak and session state locally in `~/.touch-grass/state.json`. Configuration, including cached location and the weather threshold, is kept in `~/.touch-grass/config.json`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTouch Grass AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nalediym-touch-grass?style=directory)](https://allmcps.com/mcp/nalediym-touch-grass)
HTML Embed
<a href="https://allmcps.com/mcp/nalediym-touch-grass"><img src="https://allmcps.com/api/badge/nalediym-touch-grass?style=directory" alt="Touch Grass on AllMCPs" /></a>