Home / Servers / GitHub API / repos_get_code_frequency_stats

Get the weekly commit activity

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Get the weekly commit activity Returns a weekly aggregate of the number of additions and deletions pushed to a repository. > [!NOTE] > This endpoint can only be used for repositories with fewer than 10,000 commits. If the… [GET /repos/{owner}/{repo}/stats/code_frequency]

Name on the gateway: github_api__repos_get_code_frequency_stats · read-only.

Parameters

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository without the .git extension. The…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__repos_get_code_frequency_stats",
  "arguments": {
    "owner": "…",
    "repo": "…"
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the get the weekly commit activity tool with owner set to ….

More from GitHub API