mcp-server hooks

23 tagged mcp-server, measured the same way as everything else here.

Browse within: model-context-protocol 81local-first 49cursor 48claude-code-plugin 47LLM 40agent-memory 26ai-memory 25cost-tracking 24token-tracking 24knowledge-graph 18gemini-cli-extension 17ai-coding 16claude-ai 13bun 11

PostToolUse

01

cloudwego/abcoder

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Write, Edit, mcp__abcoder__list_repos, mcp__abcoder__get_repo_structure, mcp__abcoder__get_package_structure and mcp__abcoder__get_file_structure tool calls, executing need_update.sh, prompt.sh and reminder.sh (3 commands). From cloudwego/abcoder.

not rated 389 +1 3mo ago A tokens not measured original Apache-2.0 archived

PostToolUse

02

SaravananJaichandar/world-model-mcp

Hook Claude Code

One of 5 in settings.json

Runs after a tool call finishes for Edit, Write, Bash and Read tool calls, executing world-model-capture.js via node. From SaravananJaichandar/world-model-mcp.

not rated 25 5d ago A tokens not measured original MIT

SessionStart

03

sgx-labs/statelessagent

Hook Claude Code

One of 5 in settings.json

Runs when a session starts, running same hook session-bootstrap (3 commands). From sgx-labs/statelessagent.

not rated 24 1mo ago A tokens not measured

SessionStart

04

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

AfterAgent

05

djinn-soul/gemini-mem

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterAgent event, executing hook-runner.cjs via node. From djinn-soul/gemini-mem.

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

PreToolUse

06

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

UserPromptSubmit

07

ShipToday/forge-plugin-codex

Hook Claude Code

One of 4 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing prompt-router.cjs via node. From ShipToday/forge-plugin-codex.

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

BeforeTool

08

Checkmarx/cx-agentic-ai

Hook Claude Code

One of 2 in hooks.json

Runs on the BeforeTool event for mcp_.*, WriteFile, write_file, write_.*, replace, mcp_.*, WriteFile, write_file, write_.*, replace and run_shell_command tool calls, executing cx_check.sh, cx_run.sh and cx_record_login.sh via sh with --gemini-cli (4 commands). From Checkmarx/cx-agentic-ai.

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

PreToolUse

09

javierfajardo85-rgb/aiaam-xyz

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing bash-firewall.sh. From javierfajardo85-rgb/aiaam-xyz.

not rated 0 5mo ago A tokens not measured archived

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: