MCP.so
Sign In

Load GitHub token from environment or set manually MCP Server

@jatinnahar15

Basic information

Category

Developer Tools

Transports

stdio

Author

jatinnahar15

About Load GitHub token from environment or set manually MCP Server

Repository created via custom MCP Python server

Load GitHub token from environment or set manually MCP Server config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Load GitHub token from environment or set manually MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Load GitHub token from environment or set manually?

A custom MCP (Model Context Protocol) server that enables GitHub repository creation via HTTP POST requests. It uses a GitHub Personal Access Token loaded from the environment variable GITHUB_TOKEN to authenticate with the GitHub API.

How to use Load GitHub token from environment or set manually?

Install Python 3.x, Flask, and requests. Create a GitHub Personal Access Token with repo scope, set it as the environment variable GITHUB_TOKEN, then run the server script mcp_github_server.py. Send a POST request to http://localhost:5001/command with a JSON body specifying the create-repo command and repository details.

Key features of Load GitHub token from environment or set manually

  • Requires Python 3, Flask, and requests libraries.
  • GitHub token loaded from environment variable for security.
  • Runs a local HTTP server on port 5001.
  • Accepts JSON commands to create GitHub repositories.
  • Supports public and private repository creation.

Use cases of Load GitHub token from environment or set manually

  • Automating GitHub repository creation from a script or tool.
  • Integrating GitHub repository provisioning into a larger MCP-based workflow.
  • Quickly testing repository creation with custom parameters.

Frequently asked questions

1

What are the dependencies to run this server?

Python 3.x, Flask, and requests. Install with `pip install flask requests`.

2

How do I set the GitHub token?

Set the environment variable `GITHUB_TOKEN` in your terminal. For Windows: `set GITHUB_TOKEN=ghp_YourTokenHere`.

3

How do I start the server?

Run the server script: `python mcp_github_server.py`.

4

What transport does the server use?

It listens for HTTP POST requests at `http://localhost:5001/command`.

5

How do I authenticate with GitHub?

The server reads the `GITHUB_TOKEN` environment variable. No additional authentication is required in the request body.

Comments

More Developer Tools MCP servers