Home / Servers / GitHub API / orgs_create_invitation

Create an organization invitation

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

Create an organization invitation Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. This… [POST /orgs/{org}/invitations]

Name on the gateway: github_api__orgs_create_invitation · may change things.

Parameters

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
invitee_idinteger**Required unless you provide email**. GitHub user ID for the person you are…
emailstring**Required unless you provide invitee_id**. Email address of the person you…
roleadmin | direct_member | billing_manager | reinstateThe role for the new member. * admin - Organization owners with full…
team_idsarraySpecify IDs for the teams you want to invite new members to.

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

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 invitation tool with org set to ….

More from GitHub API