Home / Servers / GitHub API / users_create_gpg_key_for_authenticated_user
Create a GPG key for the authenticated user
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Create a GPG key for the authenticated user Adds a GPG key to the authenticated user's GitHub account. OAuth app tokens and personal access tokens (classic) need the write:gpg_key scope to use this endpoint. [POST /user/gpg_keys]
Name on the gateway: github_api__users_create_gpg_key_for_authenticated_user · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
name | string | A descriptive name for the new key. |
armored_public_key required | string | A GPG key in ASCII-armored format. |
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:
{
"name": "github_api__users_create_gpg_key_for_authenticated_user",
"arguments": {
"armored_public_key": "…"
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
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 a gpg key for the authenticated user tool with name set to ….