mcp hooks

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

Browse within: model-context-protocol 188claude-code-plugin 122agent-memory 85local-first 62Multi-Agent 59ai-coding 53ai-memory 39knowledge-graph 38knowledge-management 29fastmcp 28knowledge-base 28codex-plugin 25ai-assistant 23embeddings 21

PreToolUse

25

H-mmer/pentest-agents

Hook Claude Code

One of 6 in settings.json

Runs before the agent uses a tool for Bash, Write and Edit tool calls, executing scope_hook.py, file_path_guard.py, cvss_version_guard.py and validity_guard.py via uv (4 commands). From H-mmer/pentest-agents.

not rated 815 +2 2mo ago A tokens not measured

PreToolUse

26

assistant-ui/tool-ui

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash(git add*) and Bash(git commit*) tool calls, running an inline shell check (2 commands). From assistant-ui/tool-ui.

not rated 772 3d ago A tokens not measured original MIT

SessionStart

27

assistant-ui/tool-ui

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, running an inline shell check (2 commands). From assistant-ui/tool-ui.

not rated 772 3d ago A tokens not measured original MIT

SessionStart

28

vshulcz/deja-vu

Hook

One of 3 in hooks.json

Runs when a session starts on startup and resume, executing deja.sh. From vshulcz/deja-vu.

not rated 765 today A tokens not measured original MIT

UserPromptSubmit

29

vshulcz/deja-vu

Hook

One of 3 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing deja.sh. From vshulcz/deja-vu.

not rated 765 today A tokens not measured original MIT

PreCompact

30

vshulcz/deja-vu

Hook

One of 3 in hooks.json

Runs before the context is compacted for manual and auto tool calls, executing deja.sh. From vshulcz/deja-vu.

not rated 765 today A tokens not measured original MIT

PostToolUse

31

ktnyt/cclsp

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Write, Edit and MultiEdit tool calls, running an inline shell check (2 commands). From ktnyt/cclsp.

not rated 673 +1 6mo ago A tokens not measured original MIT

PostToolUse

32

joinly-ai/joinly

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, running an inline shell check. From joinly-ai/joinly.

not rated 564 2d ago A tokens not measured original MIT

PostToolUse

33

matiasbattocchia/open-bsp-api

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, executing check-edited.sh. From matiasbattocchia/open-bsp-api.

not rated 565 +2 3d ago A tokens not measured copy · 48% Unlicense

PreToolUse

34

8beeeaaat/touchdesigner-mcp

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing integration-test-guard.mjs via node. From 8beeeaaat/touchdesigner-mcp.

not rated 515 +1 26d ago A tokens not measured copy · 58% MIT

SessionStart

35

ooples/token-optimizer-mcp

Hook

One of 4 in hooks.json

Runs when a session starts, executing session-start.mjs via node. From ooples/token-optimizer-mcp.

not rated 507 today A tokens not measured original MIT

BeforeTool

36

ooples/token-optimizer-mcp

Hook

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 507 today A tokens not measured original MIT

AfterTool

37

ooples/token-optimizer-mcp

Hook

One of 4 in hooks.json

Runs on the AfterTool event for replace, write_file and run_shell_command tool calls, executing post-tool.mjs via node. From ooples/token-optimizer-mcp.

not rated 507 today A tokens not measured original MIT

SessionStart

38

davekilleen/Dex

Hook Claude Code

One of 7 in settings.json

Runs when a session starts, executing session-start.sh, update_verifier.py, dex-core-orientation.sh, connection-health-checker.cjs, feedback_sweep.py, release_notes_sweep.py and skill-freshness.py via bash with --vault and --session-start (7 commands). From davekilleen/Dex.

not rated 474 +1 changed yesterday A tokens not measured

UserPromptSubmit

39

davekilleen/Dex

Hook Claude Code

One of 7 in settings.json

Runs when you submit a prompt, before the agent sees it, executing skill-freshness.py, soft-promise-detector.py, health-pulse.sh and claude-composition-refresh.sh via python3 (4 commands). From davekilleen/Dex.

not rated 474 +1 changed yesterday A tokens not measured

PreToolUse

40

davekilleen/Dex

Hook Claude Code

One of 7 in settings.json

Runs before the agent uses a tool for Read, Bash and mcp__.* tool calls, executing person-context-injector.cjs, company-context-injector.cjs, dex-safety-guard.sh and ensure-mcp-user-scope.cjs via node (5 commands). From davekilleen/Dex.

not rated 474 +1 changed yesterday A tokens not measured

PostToolUse

41

juyterman1000/entroly

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Bash, Read, Grep, Glob, Edit, Write and TodoWrite tool calls, running an inline shell check. From juyterman1000/entroly.

not rated 443 yesterday A tokens not measured original Apache-2.0

PreToolUse

42

decocms/studio

Hook Claude Code

One of 5 in settings.json

Runs before the agent uses a tool for Bash, Write, Edit and MultiEdit tool calls, executing pre-guard.js via bun. From decocms/studio.

not rated 403 +1 today A tokens not measured original MIT

PostToolUse

43

decocms/studio

Hook Claude Code

One of 5 in settings.json

Runs after a tool call finishes for Write, Edit and MultiEdit tool calls, executing post-edit-format.js via bun. From decocms/studio.

not rated 403 +1 today A tokens not measured original MIT

WorktreeCreate

44

decocms/studio

Hook Claude Code

One of 5 in settings.json

Runs when a git worktree is created, running an inline shell check. From decocms/studio.

not rated 403 +1 today A tokens not measured original MIT

SubagentStop

45

varun29ankuS/shodh-memory

Hook Claude Code

One of 2 in settings.json

Runs when a subagent finishes, executing memory-hook.ts via bun. From varun29ankuS/shodh-memory.

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

PostToolUse

46

DitriXNew/EDT-MCP

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, executing edt-skill-router.js via node. From DitriXNew/EDT-MCP.

not rated 265 yesterday A tokens not measured AGPL-3.0

SessionStart

47

HeadyZhang/agent-audit

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, running echo 'Session started'. From HeadyZhang/agent-audit.

not rated 225 +1 2mo ago A tokens not measured original MIT

PostToolUse

48

RLabs-Inc/gemini-mcp

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, executing format-on-edit.sh. From RLabs-Inc/gemini-mcp.

not rated 217 +1 1mo ago A tokens not measured copy · 50% MIT

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: