GitHub
search_code
Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns.
Remote github
Remote (network-hosted)
Other tools also called search_code?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"page": {
"type": "number",
"minimum": 1,
"description": "Page number for pagination (min 1)"
},
"sort": {
"type": "string",
"description": "Sort field ('indexed' only)"
},
"order": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort order for results"
},
"query": {
"type": "string",
"description": "Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go', 'repo:github/github-mcp-server'. Supports exact matching, language filters, path filters, and more."
},
"perPage": {
"type": "number",
"maximum": 100,
"minimum": 1,
"description": "Results per page for pagination (min 1, max 100)"
}
}
}