mcp hooks

135 tagged mcp, measured the same way as everything else here.

Browse within: mcp-server 329model-context-protocol 280LLM 202claude-code-plugin 166cli 121agent-memory 115cursor 79local-first 79Multi-Agent 64ai-tools 63knowledge-graph 60agent 56ai-coding 54agents 53

PostToolUse

01

aaif-goose/goose

Hook Claude Code

One of 4 in hooks.json

Runs after a tool call finishes for developer__shell and developer__text_editor tool calls, executing announce.sh. From aaif-goose/goose.

not rated 57k +237 2d ago A ✓ AI review tokens not measured original Apache-2.0

BeforeTool

02

ooples/token-optimizer-mcp

Hook Claude Code

One of 4 in hooks.json

Runs on the BeforeTool event for read_file, search_file_content, glob, replace, write_file and run_shell_command tool calls, executing pre-tool.mjs via node. From ooples/token-optimizer-mcp.

not rated 596 +2 changed 18d ago A tokens not measured original MIT

SessionStart

03

agenticmail/agenticmail

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts, running agenticmail-codex-mail-hook. From agenticmail/agenticmail.

not rated 260 +3 3d ago A tokens not measured original MIT

PostToolUse

04

Bene-2020/plane-codex-mcp

Hook Claude Code

One of 5 in hooks.json

Runs after a tool call finishes for ^mcp__ambient_project__(list_projects, record_project_events, acknowledge_no_project_events, decline_project_binding and restore_project_binding)$ tool calls, executing index.js. From Bene-2020/plane-codex-mcp.

not rated 86 26d ago A tokens not measured original MIT

PreToolUse

05

prakrititz/relayBrain

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Edit, Write, NotebookEdit, Read, Grep and Glob tool calls, executing relay-claude-pre-tool.js and relay-claude-pre-read.js via node (2 commands). From prakrititz/relayBrain.

not rated 34 1mo ago A tokens not measured original MIT

PreToolUse

06

gnt-ai/gnt

Hook Claude Code

Runs before the agent uses a tool, running gnt hooks check-action. From gnt-ai/gnt.

not rated 30 6d ago A tokens not measured original Apache-2.0

PreToolUse

07

buildinternet/uploads

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From buildinternet/uploads.

not rated 21 today A tokens not measured original Apache-2.0

UserPromptSubmit

08

bobmatnyc/mcp-skillset

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, running mcp-skillset enrich-hook. From bobmatnyc/mcp-skillset.

not rated 19 8mo ago A tokens not measured original MIT archived

SessionStart

09

Lians-ai/Lians

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on ^(startup, resume and clear)$, executing run_hook.sh. From Lians-ai/Lians.

not rated 17 21d ago A tokens not measured original Apache-2.0

SessionStart

10

Rockielab/rockie-nugget

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts, executing session-start.sh via bash. From Rockielab/rockie-nugget.

not rated 13 4mo ago A tokens not measured original Apache-2.0

UserPromptSubmit

11

agentproto/ts

Hook Claude Code

One of 3 in settings.json

Runs when you submit a prompt, before the agent sees it, executing user-prompt-submit.mjs. From agentproto/ts.

not rated 11 +1 today A tokens not measured original Apache-2.0

PreToolUse

12

anthillnet/sinain-hud

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool, executing approve-tool.sh. From anthillnet/sinain-hud.

not rated 9 2d ago A tokens not measured

PostToolUse

13

menot-you/n-memory

Hook Claude Code

One of 12 in hooks.json

Runs after a tool call finishes for Write, Edit, MultiEdit, mcp__plugin_nott_nspawn__nspawn_run_start, mcp__plugin_nott_nspawn__nspawn_review_start, mcp__plugin_nott_nspawn__nspawn_batch_start, ^(Agent, Task, Workflow, SendMessage, mcp__(plugin_nott_)?nspawn__nspawn_(run, batch, review)_start)$, Bash, Bash, Agent…

not rated 9 changed 1mo ago A tokens not measured AGPL-3.0

SessionStart

14

GiulioDER/RE-call

Hook Claude Code

One of 7 in hooks.json

Runs when a session starts on startup, resume, clear and compact, running recall-codex-hooks. From GiulioDER/RE-call.

not rated 8 +2 changed 2mo ago A tokens not measured original AGPL-3.0

UserPromptSubmit

15

djerok/glm-mcp

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing glm_router_hook.mjs via node. From djerok/glm-mcp.

not rated 8 4mo ago A tokens not measured original MIT

BeforeAgent

16

ilyautov/cordon

Hook Claude Code

One of 4 in hooks.json

Runs on the BeforeAgent event, executing cli.js via node with --harness. From ilyautov/cordon.

not rated 6 4d ago A tokens not measured original MIT

PreToolUse

17

metago-ai/metagolifeform

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool for Edit, Write and Bash tool calls, executing pre-tool-use-guard.cjs via node. From metago-ai/metagolifeform.

not rated 6 23d ago A tokens not measured original MIT

SessionStart

18

ToruAI/megg

Hook Claude Code

Runs when a session starts on startup and resume, running an inline shell check. From ToruAI/megg.

not rated 5 4mo ago A tokens not measured original MIT

PreToolUse

19

yushiran/Academic-Figure-Figma-CC-Skills

Hook Claude Code

Runs before the agent uses a tool for mcp__.*[Ff]igma.*__use_figma tool calls, executing figma_preflight.py. From yushiran/Academic-Figure-Figma-CC-Skills.

not rated 5 1mo ago A tokens not measured

PreToolUse

20

dinhanhthi/coding-friend

Hook Claude Code

One of 8 in hooks.json

Runs before the agent uses a tool for Read, Write, Edit, Glob, Grep and apply_patch tool calls, executing privacy-block.sh and scout-block.cjs (2 commands). From dinhanhthi/coding-friend.

not rated 4 12d ago A tokens not measured original MIT

PostToolUse

21

Obidel/Agentmemory

Hook Claude Code

Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, running echo 'Tip: project-specific conventions should be stored as . From Obidel/Agentmemory.

not rated 4 6mo ago A tokens not measured original MIT

SessionStart

22

agallardol/zcode-git-worktrees

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing session-start.mjs via node. From agallardol/zcode-git-worktrees.

not rated 4 3mo ago A tokens not measured original MIT

PreToolUse

23

an0malous/mcp-custos

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Edit and Write tool calls, running an inline shell check. From an0malous/mcp-custos.

not rated 3 3mo ago A tokens not measured original MIT

SessionStart

24

OnourImpram/mneme

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, running mneme hook session-start. From OnourImpram/mneme.

not rated 3 10d ago A tokens not measured original Apache-2.0

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: