Github MCP

github
12186
GitHub's official MCP Server
#github #mcp #mcp-server

Overview

What is Github MCP

The GitHub MCP Server is an official Model Context Protocol (MCP) server that integrates seamlessly with GitHub APIs, allowing developers to automate workflows and enhance interaction capabilities with GitHub's ecosystem.

How to Use

To use the GitHub MCP Server, you need to create a GitHub Personal Access Token and run the server using Docker. You can install it directly from Visual Studio Code or VS Code Insiders by following the provided installation links.

Key Features

Key features include automation of GitHub workflows, data extraction and analysis from repositories, and the ability to build AI-powered tools that interact with GitHub.

Where to Use

The GitHub MCP Server can be used in software development, data analysis, and AI tool development, particularly in environments that leverage GitHub for version control and collaboration.

Use Cases

Use cases include automating GitHub workflows, extracting and analyzing data from repositories, and developing applications that utilize GitHub's APIs for enhanced functionality.

Installation

Generate your exclusive SSE URL:

MCP Server Configuration (for all clients):

Installation in Cursor

1. Click on the Cursor settings icon in the top right, find the 'MCP' option in the left menu;
2. Click the '+ Add' button in the top right of that page, which will automatically open the mcp.json configuration file.
3. Paste the MCP configuration into the file and save it (no need to delete existing content).
4. The MCP settings interface will show a green dot when the configuration is correct.

Note: If the green status is not displayed, please try restarting Cursor.

Installation in Claude

1. Open 'Settings' in the top left corner of the Claude page, go to 'Developer', and click 'Edit Config' to locate the claude_desktop_config.json configuration file;
2. Paste the MCP configuration into the file and save it (insert in the appropriate position, without deleting existing content).

After completion, restart Claude, and you can use MCP functions through the Claude dialog

SDK

Installation in Python

Install composio-toolset by running the following commands in your terminal:

pip install composio_openai

Python example code:

from composio_openai import ComposioToolSet, App
from openai import OpenAI

openai_client = OpenAI()
composio_toolset = ComposioToolSet(entity_id="default")

tools = composio_toolset.get_tools(apps=[App.GITHUB])

Installation in TypeScript

Install composio-core by running the following commands in your terminal:

npm install -g composio_core

TypeScript example code:

import { OpenAI } from "openai";
import { OpenAIToolSet } from "composio-core";

const openaiClient = new OpenAI();
const composioToolset = new OpenAIToolSet();

const tools = await composioToolset.getTools({
  apps: ["github"],
});

Content