About Github MCP Server Demo
A Python MCP server demo that creates GitHub repositories through a local HTTP endpoint. It is intended for users who want to trigger repository creation with a POST request.
Key features
- 01Create a GitHub repository
- 02Set repository privacy
- 03Add a repository description
- 04Accept POST requests at /command
Use cases
- 01Create a repository from a local script
- 02Create a private repository with a description
MCP support
The server accepts commands through a local HTTP endpoint; the README does not describe MCP client transport or exposed MCP tools.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project README-
Install Python 3.x
-
Install Flask and requests: pip install flask requests
-
Create a GitHub Personal Access Token with repo scope
-
Create mcp server file. [mcp_github_server.py]
-
Set your GitHub token securely (in terminal): set GITHUB_TOKEN=ghp_YourTokenHere # on Windows
-
Run it: python mcp_github_server.py
-
How to Send Post Request to Mcp Server,
Send a POST request to http://localhost:5001/command with JSON like:
BODY: { "name": "create-repo", "input": { "repo_name": "mcp-python-test", "private": true, "description": "Repository created via custom MCP Python server" } }
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.