About Grepai
Grepai is an MCP server published by yoanbernabeu in the Developer Tools category: semantic Search & Call Graphs for AI Agents (100% Local). Conduid read 14 tools from its source: grepai_index_status, grepai_list_projects, grepai_list_workspaces, grepai_refs_graph, grepai_refs_readers, grepai_refs_writers and 8 more. No package is published for it, so it installs from a source checkout.
The repository has 2.0K stars and 161 forks, is licensed MIT, and its last commit was on 2 Nov 2026. The latest release is v1.2.0 (30 Oct 2026): grepai 1.2.0 Semantic code search CLI tool. It follows v1.1.0 (26 Oct 2026), and the 5 most recent releases go back to v0.38.0 (24 Oct 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, code-search, cli and embeddings.
Install
git clone https://github.com/yoanbernabeu/grepaiTools (14)
grepai_index_statusCheck the health and status of the grepai index. Returns statistics about indexed files, chunks, and configuration.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| verbose | boolean | Include additional debug details when available (optional). |
| workspace | string | Workspace name to check status for (optional) |
grepai_list_projectsList all projects within a workspace. Use this to discover project names and file paths relative to their project roots, which informs how to use the --path parameter in grepai_search.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| workspace | string | Name of the workspace to list projects for (optional when mcp-serve was started with --workspace) |
grepai_list_workspacesList all available workspace names. Use this to discover valid values for tools that accept the workspace parameter.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
grepai_refs_graphBuild a property/state usage graph for a symbol by combining readers and writers.| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Return minimal output without context (default: false) |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| project | string | Project name within workspace (requires workspace) |
| symbol * | string | Property/state symbol name to build graph for |
| workspace | string | Workspace name for cross-project refs (optional) |
grepai_refs_readersFind readers of a property/state symbol (non-call data usage such as store.uid reads).| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Return minimal output without context (default: false) |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| project | string | Project name within workspace (requires workspace) |
| symbol * | string | Property/state symbol name to find readers for |
| workspace | string | Workspace name for cross-project refs (optional) |
grepai_refs_writersFind writers of a property/state symbol (non-call data usage such as this.uid = ...).| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Return minimal output without context (default: false) |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| project | string | Project name within workspace (requires workspace) |
| symbol * | string | Property/state symbol name to find writers for |
| workspace | string | Workspace name for cross-project refs (optional) |
grepai_rpg_exploreExplore the RPG graph using BFS traversal from a starting node with configurable depth and edge type filtering.| Parameter | Type | Description |
|---|---|---|
| depth | number | Maximum BFS depth (default: 2) |
| direction | string | Traversal direction: 'forward', 'reverse', or 'both' (default: 'both') |
| edge_types | string | Comma-separated edge types to follow: feature_parent, contains, invokes, imports, maps_to_chunk, semantic_sim |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| limit | number | Maximum nodes to return (default: 100) |
| project | string | Project name within the workspace (required when the workspace has several projects) |
| start_node_id * | string | Starting node ID for graph traversal |
| workspace | string | Workspace name: read the RPG graph of a workspace project (defaults to the server's --workspace) |
grepai_rpg_fetchFetch detailed information about a specific RPG node including hierarchy, edges, and context.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| node_id * | string | Node ID to fetch (e.g., 'sym:main.go:HandleRequest') |
| project | string | Project name within the workspace (required when the workspace has several projects) |
| workspace | string | Workspace name: read the RPG graph of a workspace project (defaults to the server's --workspace) |
grepai_rpg_searchSearch RPG nodes using Jaccard-based semantic matching with scope and kind filtering.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| kinds | string | Comma-separated node kinds to filter: area, category, subcategory, file, symbol, chunk (default: symbol) |
| limit | number | Maximum number of results to return (default: 10) |
| project | string | Project name within the workspace (required when the workspace has several projects) |
| query * | string | Natural language or feature query to search for |
| scope | string | Area/category path to narrow search (e.g., 'cli', 'rpg/query') |
| workspace | string | Workspace name: read the RPG graph of a workspace project (defaults to the server's --workspace) |
grepai_searchSemantic code search. Search your codebase using natural language queries. Returns the most relevant code chunks with file paths, line numbers, and similarity scores.
Examples:
- whole workspace: workspace='acme', path='backend/src/' (path starts with the project name)
- single project: workspace='acme', projects='backend', path='src/' (path relative to that project)| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Return minimal output without content (default: false) |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| limit | number | Maximum number of results to return (default: 10) |
| path | string | Path prefix to filter results. Without workspace: relative to the project root, e.g. 'src/'. With workspace and exactly one project in projects: relative to that project root, e.g. 'src/'. With workspace and no single project: must start with the project name, e.g. 'api/src'. |
| projects | string | Comma-separated list of project names to search within workspace (requires workspace) |
| query * | string | Natural language search query (e.g., 'user authentication flow', 'error handling middleware') |
| workspace | string | Workspace name for cross-project search (optional) |
grepai_statsShow token savings summary achieved by using grepai instead of grep-based workflows. Returns aggregated metrics from local stats.| Parameter | Type | Description |
|---|---|---|
| history | boolean | Include per-day history breakdown (default: false) |
| limit | number | Max days in history (default: 30, only used when history=true) |
grepai_trace_calleesFind all functions called by the specified symbol. Useful for understanding what a function depends on.| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Return minimal output without context (default: false) |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| project | string | Project name within workspace (requires workspace) |
| symbol * | string | Name of the function/method to find callees for |
| workspace | string | Workspace name for cross-project trace (optional) |
grepai_trace_callersFind all functions that call the specified symbol. Useful for understanding code dependencies before modifying a function.| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Return minimal output without context (default: false) |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| project | string | Project name within workspace (requires workspace) |
| symbol * | string | Name of the function/method to find callers for |
| workspace | string | Workspace name for cross-project trace (optional) |
grepai_trace_graphBuild a complete call graph around a symbol showing both callers and callees up to a specified depth.| Parameter | Type | Description |
|---|---|---|
| depth | number | Maximum depth for graph traversal (default: 2) |
| format | string | Output format: 'json' (default) or 'toon' (token-efficient) |
| project | string | Project name within workspace (requires workspace) |
| symbol * | string | Name of the function/method to build graph for |
| workspace | string | Workspace name for cross-project trace (optional) |
Security checks
Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 504 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by flake.lock and go.sum.
- ✓No dynamic code executionScanned 131 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 7 callscli/watch.go:1033, daemon/daemon.go:509, framework/vue_processor.go:67
- Outbound network calls
- 24 callsembedder/lmstudio.go:80, embedder/lmstudio.go:116, embedder/lmstudio.go:184
- Writes or deletes files
- 75 callscli/agent_setup.go:264, cli/agent_setup.go:331, cli/agent_setup.go:336
- Lockfile
- flake.lock and go.sum
Pattern matches on the source text of 131 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 504 words, fetched 4 days ago. The original in the repository is authoritative.
Read full README