Local codebase search for AI assistants via MCP. Requires Hawkeye and Hawkeye AI Bridge installed.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by Hawkeye AI Bridge.
hawkeye_search_minimalToken-efficient search β returns only file paths and line numbers. **91% fewer tokens** than grep. Best for chat-based lookups.
hawkeye_searchFull search with metadata β returns complete result objects with context. Best for detailed analysis.
hawkeye_get_groupsList all searchable code groups configured in Hawkeye.
hawkeye_get_editorsList configured editors for opening files.
hawkeye_execute_editorOpen a file in a configured editor at a specific line number.
hawkeye_health_checkVerify Hawkeye service is running and accessible.
Local codebase search for Claude Code, VS Code, Cursor, and AI agents.
Hawkeye AI Bridge lets AI coding assistants query Hawkeyeβs local project index through MCP, so they can find exact references across large codebases, assets, scripts, localization, config files, and project content without uploading the full repository.
Instead of giving an AI agent huge raw grep output, Hawkeye can return compact file/line results that help the agent decide which files are actually worth reading next.
This repository is the official public setup and discovery repository for using Hawkeye AI Bridge as an MCP server.
It does not contain the proprietary Hawkeye AI Bridge source code. Hawkeye and Hawkeye AI Bridge are proprietary software owned by Zaragsoft.
Hawkeye helps developers quickly search and understand large projects. With MCP support, AI coding assistants can ask Hawkeye for fast local search results, saving tokens on each call.
Typical use cases:
Recommended install path: Place the AIBridge folder at C:\Program Files\Hawkeye\AIBridge\. Use this path in all examples below. If you install elsewhere, substitute your actual path throughout.
You don't need this zip for Claude Desktop. Download Hawkeye.mcpb from the release page and install it directly:
.mcpb is a recognised file type on your system: double-click the file.AIBridge folder to a permanent location β recommended: C:\Program Files\Hawkeye\AIBridge\. Don't run it from Downloads; the registered path must keep working.hawkeye with 9 tools available.The MCP server needs to locate hawkeye.exe. Pick one option:
Option A (recommended): Set HAWKEYE_PATH
After setting an environment variable, close and reopen your terminal so the new value takes effect.
Option B: Add Hawkeye to PATH via Windows GUI
Win, type Environment Variables, open Edit the system environment variables.C:\Program Files\Hawkeye and click OK on all dialogs.Avoid
setx PATH "%PATH%;..."from the command line β it can truncate PATH at 1024 characters. Use the GUI instead.
--scope user makes Hawkeye available in every Claude Code session, not just the current folder.-- separator is required. It tells Claude Code where its own flags end and the registered command begins. Without it, registration may fail.Hawkeye works as an MCP server in VS Code's Copilot Agent mode. Register the exe, then open Copilot Chat in Agent mode.
Click the button above, then click Allow in VS Code.
Add this to your .vscode/mcp.json (create the file if it doesn't exist):
To make Hawkeye available across all projects, add it to your user-level config instead:
Ctrl+Alt+I)Note: The
hawkeye-search.skillfile is for Claude Code and Claude Desktop only β VS Code uses Copilot's own context system and doesn't need it.
Open Settings β Tools & MCP β New MCP Server and add:
Why
cmd /c? Cursor passes the command path to the shell without quoting it, which breaks paths containing spaces (likeC:\Program Files\). Wrapping it withcmd /cworks around this.
Adjust the path if Hawkeye AI Bridge is installed somewhere else.
Add the following to your opencode.json (create it in your project root or home directory if it doesn't exist):
Three things differ from the Claude Code config:
"mcp", not "mcpServers"command is an array of strings, not a command + args split"type": "local" is requiredThe Skill is required for OpenCode. Without it, OpenCode will try to call hawkeye.exe directly on the command line rather than routing tool calls through the MCP server.
OpenCode expects skills to be extracted from the .skill zip archive:
Once both are in place, restart OpenCode and try: "Find where PlayerController is defined." You should see it call hawkeye_search_minimal.
The Skill teaches Claude when and how to use the Hawkeye tools. Without it, Claude has to guess from tool descriptions alone β results will be worse.
The shipped file is called hawkeye-search.skill but Claude Code expects it to be named SKILL.md inside a named folder.
PowerShell (one command):
Manual:
%USERPROFILE%\.claude\skills\ (create the skills folder if it doesn't exist).hawkeye-search.hawkeye-search.skill into it.hawkeye-search.skill to SKILL.md. (Enable "File name extensions" in File Explorer's View menu if you can't see the extension.)To restrict the Skill to a single project, place
SKILL.mdat<your-project>\.claude\skills\hawkeye-search\SKILL.mdinstead.
| Tool | Description |
|---|---|
hawkeye_search_minimal | Token-efficient search β returns only file paths and line numbers. 91% fewer tokens than grep. Best for chat-based lookups. |
hawkeye_search | Full search with metadata β returns complete result objects with context. Best for detailed analysis. |
hawkeye_get_groups | List all searchable code groups configured in Hawkeye. |
hawkeye_get_editors | List configured editors for opening files. |
hawkeye_execute_editor | Open a file in a configured editor at a specific line number. |
hawkeye_health_check | Verify Hawkeye service is running and accessible. |
validate_hawkeye_path | Check that the configured Hawkeye path exists and is valid. |
get_settings | Retrieve current Hawkeye configuration (path, max results, case sensitivity). |
save_settings | Save Hawkeye configuration. |
copy_to_clipboard | Copy text to the system clipboard. |
| Approach | Tokens used |
|---|---|
| Blind file reading (no Hawkeye) | ~100,000 per session |
With hawkeye_search_minimal | ~20,000 per session |
| Savings | ~80% reduction |
Ask your AI coding assistant:
When a new version of HawkeyeAIBridge.exe is released:
When a new hawkeye-search.skill ships, repeat the Skill install step β Copy-Item will overwrite the existing SKILL.md.
claude command not foundClaude Code isn't installed or isn't on your PATH. Install from https://docs.claude.com/en/docs/build-with-claude/claude-code and restart your terminal.
claude mcp list doesn't show hawkeyeYou may have registered it in a different scope. Re-register with --scope user:
claude mcp list shows hawkeye but with 0 toolsThe exe was registered but failed to start. Common causes:
AIBridge folder was moved or deleted after registration.hawkeye --version in a fresh terminal to check.claude mcp remove hawkeye then re-register.hawkeye --version.HAWKEYE_PATH (see Prerequisites above) and close/reopen your terminal.%USERPROFILE%\.claude\skills\hawkeye-search\SKILL.md.SKILL.md.skill β Windows may hide the original .skill extension. Enable "File name extensions" in File Explorer's View menu to check.If Cursor logs show 'C:\Program' is not recognized as an internal or external command, the path with spaces is being passed unquoted. Use the cmd /c workaround shown in the Cursor section above.
hawkeye --getgroups manually to test.Dual License:
See LICENSE for complete terms.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hawkeye-ai-bridge)<a href="https://allmcps.com/mcp/hawkeye-ai-bridge"><img src="https://allmcps.com/api/badge/hawkeye-ai-bridge?style=directory" alt="Hawkeye AI Bridge on AllMCPs" /></a>