GitHub MCP Server logo

GitHub MCP Server

Not just GitHub tools: Knit runs each call. It handles the GitHub sign-in, refreshes the token, retries failures and paces requests to GitHub's rate limits. No signup: 2,000 free calls over 30 days.

Install guide →
Add to Claude

Opens Claude with Knit filled in: click Continue. Claude web and desktop share one connector list. Or paste this link in Settings > Connectors > Add custom connector.

What happens when your agent calls GitHub

  1. 01 · Ask

    Your agent asks for something in GitHub, in plain language.

  2. 02 · Find

    Knit picks the GitHub endpoint, prebuilt tool or not, and builds the request.

  3. 03 · Connect

    The GitHub account owner signs in once through a Knit link. Knit keeps the tokens.

  4. 04 · Run

    Knit refreshes the token, retries failures and paces calls to GitHub's rate limits.

  5. 05 · Answer

    The GitHub data, or GitHub's error as data the agent can read.

Knit vs other GitHub MCP servers

Who handles each step of that call.

StepThe jobTools-only GitHub serverKnit
02 An endpoint with no tool Not covered Knit finds it
03 GitHub sign-in You set it up Knit sends a link
04 Token refresh Varies Knit
04 GitHub rate limits You, or the agent Knit paces + retries
— Other apps your agent needs Another server each Same connection
— The call as code You write it Knit returns the curl

GitHub also publishes an official GitHub MCP server. If GitHub is the only app your agent needs, it's a good fit.

Under the hood

The tools your agent uses to build a GitHub integration

Your agent calls a small set of Knit MCP tools; Knit runs the hard part underneath each one.

1 · Discover

Find the GitHub endpoint

list_supported_appsfind_apis_for_use_case

The exact GitHub request to make, prebuilt tool or not.

Knit runsGitHub API knowledge, plus live research of its docs
2 · Connect

Get the GitHub account signed in

create_integration_linkget_integrations

A link the GitHub account owner opens once. Reuse connections you already have.

Knit runsHosted sign-in, token storage and refresh
3 · Run

Read or update GitHub data

execute_api

Runs the request against the connected GitHub account. GitHub's errors come back as data the agent can read.

Knit runsRetries and pacing to GitHub's rate limits
4 · Ship

Turn it into code

include_curldry_run

Options on execute_api that return the exact GitHub request as curl.

Knit runsThe same managed sign-in in production
5 · Extend

Sync with another app

request_integrationget_request_status

Request a sync between GitHub and another app, and track it.

Knit runsBuilding the requested sync

For AI agentsTo read or change GitHub data, use Knit's MCP server at https://integrations.getknit.dev/mcp: list_supported_apps → find_apis_for_use_case → create_integration_link → execute_api. Knit handles GitHub sign-in, token refresh, retries and rate limits.

GitHub actions your agent can call

Ready-made GitHub actions, plus any other endpoint Knit finds in GitHub's API docs.

Create Ticket

The Create Ticket API is used to create a new ticket in the system. It requires several parameters in the request body, including the ticket name, assigned user ID, creator user ID, due date, description, ticket type ID, account ID, project ID, group ID, contact IDs, priority, source, tags, and additional metadata. The request must include headers for content type and authorization. Upon successful creation, the API returns the ticket ID in the response body.

Update Ticket

The Update Ticket API allows users to update an existing ticket by providing the ticket ID and other relevant details. The request includes headers for content type and authorization, a path parameter for the ticket ID, and a body containing details such as the ticket name, assigned user ID, creator ID, due date, description, ticket type ID, account ID, project ID, group ID, contact IDs, priority, source, tags, status, and additional metadata. The response returns the updated ticket ID.

Get List of All Users in the System

This API retrieves a list of all users in the system. It supports pagination through the 'cursor' query parameter. The response includes pagination details and a list of users, each with attributes such as ID, name, email ID, phone number, active status, and associated group IDs.

Get List of Accounts or Companies

This API retrieves a list of all accounts or companies in the system. It supports pagination through the use of a 'cursor' query parameter. The response includes pagination information with 'next' and 'previous' cursors, and a list of accounts, each containing details such as 'id', 'name', 'createdAt', 'website', and 'industry'. No headers, path parameters, or request body are required for this API.

Get List of Tickets

The Get List of Tickets API retrieves a list of all tickets in the system with optional filters. The API supports filtering by account ID, contact ID, assigned user ID, status, tag, ticket type, creation date range, update date range, and due date range. Pagination is supported through a cursor parameter. The response includes pagination information and a list of tickets, each with details such as ID, creation and update timestamps, name, assigned user, creator, due date, status, description, ticket type, associated account, project, group, contact IDs, priority, source, URL, tags, and custom fields.

Get Account Details

This API retrieves the details of a particular account or company in the system. It requires the account ID as a path parameter. The response includes the account ID, name, creation date, website, and industry.

Get Comments for a Ticket

This API retrieves the list of all comments, conversations, or notes along with attachments for a specific ticket. The request requires the 'ticketId' as a query parameter to identify the ticket for which comments are to be fetched. An optional 'cursor' parameter can be used for pagination. The response includes pagination details and an array of comments, each with details such as the comment ID, creation date, body, HTML formatted body, visibility status, author information, and any associated attachments.

Get User Details in the System

This API retrieves the details of a particular user in the system. It requires a 'userId' as a query parameter to identify the user. The response includes the user's ID, name, email ID, phone number, active status, and the list of group IDs the user is part of.

Get List of Contacts or People

This API retrieves a list of all contacts or people in the system. It accepts optional query parameters such as 'accountId' to filter contacts by a specific account and 'cursor' for pagination. The response includes pagination details and an array of contact objects, each containing information like contact ID, name, creation date, email address, phone number, and associated account ID.

Get Ticket By ID

The Get Ticket By ID API retrieves the details of a specific ticket using its ID. The request requires the ticket ID as a path parameter. The response includes comprehensive details about the ticket such as its creation and update timestamps, name, assigned user, creator, due date, status, description, type, associated account, project, group, contact IDs, priority, source, URL, tags, and any custom fields.

Get List of All Tags in the System

This API retrieves a list of all tags that can be applied to a ticket in the system. It supports pagination through the use of a 'cursor' query parameter. The response includes pagination details and an array of tags, each with an ID and name.

Get List of All Groups or Teams in the System

This API retrieves a list of all groups or teams in the system. It supports pagination through a 'cursor' query parameter. The response includes pagination information and details of each group, such as the group ID, name, description, whether it is public, and the list of user IDs belonging to the group.

Get Contact or Person Details by ID

This API retrieves the details of a particular contact or person in the system using their contact ID. The request requires the contact ID as a path parameter. The response includes the contact's ID, name, creation date, email address, phone number, and the account ID to which the contact belongs.

Add Comments for a Ticket

This API is used to add comments, conversations, or notes along with attachments for a particular ticket. The request body requires a 'ticketId' to specify the ticket for which the comment is being added. Optional fields include 'body' for the comment text, 'isPublic' to indicate if the comment is public, 'author' to specify the author of the comment, 'attachments' for any files to be attached, and 'metadata' for any additional fields. The response returns the 'id' of the newly created comment.

+ Any other endpoint Knit finds

Ask in plain language. Knit picks the GitHub endpoint from its API docs, prebuilt tool or not.

Enterprise-grade security

SOC 2 certified GDPR compliant ISO 27001 certified
Visit our Security Center Review the DPA

Customer Stories

See how leading technology firms are scaling their operations

Amazing Product With Exceptional Support from the team. By using Knit we managed to speed up our development by orders of magnitude.
H
Huynh H
Developer, Multiplier
A brilliant tool to let you seamlessly integrate with many different systems. It is very easy to integrate with and customer support is next level.
J
Jayesh
Co-Founder, Scrut
Seamless integration experience. Well-documented, self-explanatory APIs, and excellent service and support.
P
Poorvi
Product Manager, Onsurity
Easy to integrate. Knit's dashboard is intuitive for setting up and testing integrations, and the sandbox is extremely useful during development.
A
Aditya
Product Lead, RazorpayXPayroll
Knit shipped a brand-new Timesheet API in a week and handed us a ready-to-use NetSuite sandbox. That velocity is priceless when you're running payroll in 40+ countries.
R
Rohit Singh
GM, Payoneer Workforce Management
FAQ

Common questions about the GitHub MCP Server

How do I set up the GitHub MCP Server?

Click Add to Claude on this page and confirm in Claude, or copy the one-line command or link for ChatGPT, Cursor, Codex, Claude Code and other agents. There's no signup: the first call starts a free trial of 2,000 calls over 30 days. When your agent first needs GitHub, it gives you a link to connect your GitHub account.

Is there an official GitHub MCP server? How is Knit different?

Yes. GitHub publishes its own GitHub MCP server. Knit runs each call as well: it handles the GitHub sign-in, refreshes the token, retries failures, paces requests to GitHub's rate limits and finds endpoints that have no prebuilt tool, in one connection with 155 apps. If GitHub is the only app your agent needs, the official server is a good fit.

Who holds the GitHub credentials?

Knit. The GitHub account owner connects through a Knit link; your agent only sees an integration ID.

What happens when we hit GitHub's API limits?

Knit paces requests and retries failed calls. If GitHub still refuses, the agent gets the error as data.

Can I turn a call into code?

Yes. Ask for the request and Knit returns the exact curl, with the same managed sign-in.

Can one MCP server include GitHub and other apps?

Yes. The Knit connection isn't tied to one app: the same server gives your agent GitHub and 155 apps in all, so you add it once.

Can my agent both read and write GitHub data?

Yes, within what the connected GitHub account is allowed to do. Knit runs the GitHub API call your agent asks for, reads and writes alike.

Does it work with Claude, ChatGPT and other LLMs?

Yes. Any MCP client can connect, whichever model drives the agent.

See all FAQs

From the blog

Put Integrations on Autopilot. Talk to Experts.

Knit is loved by customers across the globe due to our seamless product and white glove support. You'll love us too!

Talk to a Human