
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
概覽
一個玩笑性質的 MCP 伺服器,記錄你多久沒出門、登記外出、查詢天氣並推薦附近公園。
- 可以做什麼
- 登記外出並重設煩躁計數
- 判斷你是否該出門,室內時長門檻可調整
- 在對話中察覺煩躁情緒並升級為出門提醒
- 出門前查詢當地即時天氣
- 尋找附近公園及距離,或解析你指定的街區、地址
- 適用情境
- 適合在長時間與 AI 對話時想要一個輕鬆提醒自己休息、出門走走的人,也可作為學習 MCP 共享狀態與多工具設計的入門範例。
- 執行需求
- 透過 npx(Node.js)以 stdio 在本機執行,或作為 Claude Desktop 擴充功能安裝;無需 API 金鑰。需要連網以依 IP 解析城市級位置、查詢天氣與公園。選用環境變數 GRASS_STATE_FILE 可指定歷史紀錄 JSON 檔路徑,預設為 ~/.pls-touch-grass.json。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Pls Touch Grass,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
pls-touch-grass-mcp
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
-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
Or the JSON, in ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):
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
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
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:
Every step compiles and passes its own tests. Two dependencies total: the official MCP SDK and zod.
Homework
- HTTP transport:
createMcpHandlerin 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版本歷史
1- v0.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分