Home / Servers / GitHub API / repos_create_in_org

Create an organization repository

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

Create an organization repository Creates a new repository in the specified organization. The authenticated user must be a member of the organization. OAuth app tokens and personal access tokens (classic) need the public_repo or… [POST /orgs/{org}/repos]

Name on the gateway: github_api__repos_create_in_org · may change things.

Parameters

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
name requiredstringThe name of the repository.
descriptionstringA short description of the repository.
homepagestringA URL with more information about the repository.
privatebooleanWhether the repository is private.
visibilitypublic | privateThe visibility of the repository.
has_issuesbooleanEither true to enable issues for this repository or false to disable them.
has_projectsbooleanEither true to enable projects for this repository or false to disable them.…
has_wikibooleanEither true to enable the wiki for this repository or false to disable it.
has_downloadsbooleanWhether downloads are enabled.
is_templatebooleanEither true to make this repo available as a template repository or false to…
team_idintegerThe id of the team that will be granted access to this repository. This is…
auto_initbooleanPass true to create an initial commit with empty README.
gitignore_templatestringDesired language or platform .gitignore template to apply. Use the name of the…
license_templatestringChoose an open source license template that best suits your needs, and then…
allow_squash_mergebooleanEither true to allow squash-merging pull requests, or false to prevent…
allow_merge_commitbooleanEither true to allow merging pull requests with a merge commit, or false to…
allow_rebase_mergebooleanEither true to allow rebase-merging pull requests, or false to prevent…
allow_auto_mergebooleanEither true to allow auto-merge on pull requests, or false to disallow…
delete_branch_on_mergebooleanEither true to allow automatically deleting head branches when pull requests…
use_squash_pr_title_as_defaultbooleanEither true to allow squash-merge commits to use pull request title, or false…
squash_merge_commit_titlePR_TITLE | COMMIT_OR_PR_TITLERequired when using squash_merge_commit_message. The default value for a…
squash_merge_commit_messagePR_BODY | COMMIT_MESSAGES | BLANKThe default value for a squash merge commit message: - PR_BODY - default to…
merge_commit_titlePR_TITLE | MERGE_MESSAGERequired when using merge_commit_message. The default value for a merge commit…
merge_commit_messagePR_BODY | PR_TITLE | BLANKThe default value for a merge commit message. - PR_TITLE - default to the pull…
custom_propertiesobjectThe custom properties for the new repository. The keys are the custom property…

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_create_in_org",
  "arguments": {
    "org": "…",
    "name": "…"
  }
}

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 create an organization repository tool with org set to ….

More from GitHub API