# GitHub repository search

Search public GitHub repositories with GitHub query syntax (e.g. 'mcp server language:typescript stars:>100'). Needs q.

Search public GitHub repositories with GitHub query syntax (e.g. 'mcp server language:typescript stars:>100'). Returns total count and matching repos with stars, description, language.

- Tool ID: `github/search-repositories`
- Provider: [GitHub](/providers/github.md)
- Capability: [GitHub, npm & PyPI](/tools/developer-data/code.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "description": "GitHub search query with qualifiers"
    },
    "sort": {
      "type": "string",
      "enum": [
        "stars",
        "forks",
        "help-wanted-issues",
        "updated"
      ],
      "description": "Default: best match"
    },
    "order": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "default": "desc"
    },
    "per_page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "default": 5
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "default": 1
    }
  },
  "required": [
    "q"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "github/search-repositories",
  "input": {
    "q": "hono language:typescript",
    "per_page": 2,
    "sort": "stars"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: GitHub REST API (public data).

Attribution: Data from the GitHub REST API.

[Provider documentation](https://docs.github.com/en/rest/search/search#search-repositories)

[REST inspection](https://api.agentik.cc/v1/tools/github/search-repositories) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/github/search-repositories) · [Agent index](/llms.txt)
