Pls Touch Grass

io.github.Rinava由 GitHub 账号 Rinava 发布v0.3.0更新于 Oct 24, 2026

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

已验证STDIO仅桌面位置与生活效率与工作流

概览

AI 生成的概览

一个玩笑性质的 MCP 服务器,记录你多久没出门、登记外出、查询天气并推荐附近公园。

可以做什么
  • 登记外出并重置烦躁计数
  • 判断你是否该出门,室内时长阈值可调
  • 在对话中察觉烦躁情绪并升级为出门提醒
  • 出门前查询当地实时天气
  • 查找附近公园及距离,或解析你指定的街区、地址
适用场景
适合在长时间与 AI 对话时想要一个轻松提醒自己休息、出门走走的人,也可作为学习 MCP 共享状态与多工具设计的入门示例。
运行要求
通过 npx(Node.js)以 stdio 在本机运行,或作为 Claude Desktop 扩展安装;无需 API 密钥。需要联网以按 IP 解析城市级位置、查询天气和公园。可选环境变量 GRASS_STATE_FILE 指定历史记录 JSON 文件路径,默认 ~/.pls-touch-grass.json。
安装前请注意
每次运行都会根据 IP 推断大致位置,你输入的地点名称会经 OpenStreetMap 的 Nominatim 进行地理编码,这些文字会离开本机。它会在本地写入历史记录文件。使用 --demo 参数可关闭所有网络请求并返回预设答案。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pls Touch Grass,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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

bash
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):

json
{  "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.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

bash
git clone https://github.com/Rinava/pls-touch-grass-mcpcd pls-touch-grass-mcpnpm 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.

The five tools

ToolWhat it doesWhen the model calls it
touched_grassLogs that you went outside"back from the park"
gotta_goDo you need to go out?"can I keep going?"
frustration_detectorCatches the rage and escalateson its own, when you snap; that's the point
grass_conditionsReal weather (Open-Meteo, no key)before sending you outside
where_to_touch_grassNearby 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:

bash
git checkout step-1   # stdio server + touched_grassgit 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 READMEnpm 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.

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.

来源:README.md,提交 f2a4aa0

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分