Skip to main content
Glama

grep

Search code files using exact substring or regex pattern matching with fast line-level search across indexed project files.

Instructions

Search code with exact substring or regex pattern matching. Uses FTS5 trigram index for fast line-level search across indexed files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYesSearch pattern (exact substring or regex)
regexNoTreat pattern as regex (default: false)
caseSensitiveNoCase-sensitive matching (default: true)
pathGlobNoFile path glob filter (e.g., "**/*.rs", "src/**/*.ts")
scopeNoSearch scope: project (current) or all (default: project)
contextLinesNoLines of context before/after each match (default: 0)
maxResultsNoMaximum results to return (default: 1000)
branchNoFilter by branch name
projectIdNoSpecific project ID to search
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChrisGVE/workspace-qdrant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server