Ghcli MCP Connector
MCP server for the GitHub CLI (gh). Read-only by default; single Go binary.
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.1
- Listing updated
- 5 days ago
About Ghcli MCP Connector
Ghcli MCP Connector is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add ghcli-mcp-connector --env GH_TOKEN='<GH_TOKEN>' -- npx -y https://github.com/FerhatDundar/ghcli-mcp-connector/releases/download/v0.1.1/ghcli-mcp-connector-plugin-v0.1.1-darwin-arm64.zipAdd to claude_desktop_config.json
{
"mcpServers": {
"ghcli-mcp-connector": {
"command": "npx",
"args": [
"-y",
"https://github.com/FerhatDundar/ghcli-mcp-connector/releases/download/v0.1.1/ghcli-mcp-connector-plugin-v0.1.1-darwin-arm64.zip"
],
"env": {
"GH_TOKEN": "<GH_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ghcli-mcp-connector": {
"command": "npx",
"args": [
"-y",
"https://github.com/FerhatDundar/ghcli-mcp-connector/releases/download/v0.1.1/ghcli-mcp-connector-plugin-v0.1.1-darwin-arm64.zip"
],
"env": {
"GH_TOKEN": "<GH_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"ghcli-mcp-connector": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://github.com/FerhatDundar/ghcli-mcp-connector/releases/download/v0.1.1/ghcli-mcp-connector-plugin-v0.1.1-darwin-arm64.zip"
],
"env": {
"GH_TOKEN": "<GH_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"ghcli-mcp-connector": {
"command": "npx",
"args": [
"-y",
"https://github.com/FerhatDundar/ghcli-mcp-connector/releases/download/v0.1.1/ghcli-mcp-connector-plugin-v0.1.1-darwin-arm64.zip"
],
"env": {
"GH_TOKEN": "<GH_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ghcli-mcp-connector": {
"command": "npx",
"args": [
"-y",
"https://github.com/FerhatDundar/ghcli-mcp-connector/releases/download/v0.1.1/ghcli-mcp-connector-plugin-v0.1.1-darwin-arm64.zip"
],
"env": {
"GH_TOKEN": "<GH_TOKEN>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
GH_TOKENgh CLI token. Leave unset to use whatever `gh auth login` already configured (OS keychain).GH_HOSTTarget a GitHub Enterprise hostname instead of github.com.GHCLI_MCP_ALLOW_WRITESet to "true" to permit state-changing gh commands. Defaults to read-only.GHCLI_MCP_ALLOWED_REPOSOptional comma-separated allowlist of "owner/repo" values, enforced when -R/--repo is passed. Unset allows all.GHCLI_MCP_CLI_PATHOptional path to the gh binary. Defaults to "gh" resolved via PATH.GH_TOKENgh CLI token. Leave unset to use whatever `gh auth login` already configured (OS keychain).GH_HOSTTarget a GitHub Enterprise hostname instead of github.com.GHCLI_MCP_ALLOW_WRITESet to "true" to permit state-changing gh commands. Defaults to read-only.GHCLI_MCP_ALLOWED_REPOSOptional comma-separated allowlist of "owner/repo" values, enforced when -R/--repo is passed. Unset allows all.GHCLI_MCP_CLI_PATHOptional path to the gh binary. Defaults to "gh" resolved via PATH.GH_TOKENgh CLI token. Leave unset to use whatever `gh auth login` already configured (OS keychain).GH_HOSTTarget a GitHub Enterprise hostname instead of github.com.GHCLI_MCP_ALLOW_WRITESet to "true" to permit state-changing gh commands. Defaults to read-only.GHCLI_MCP_ALLOWED_REPOSOptional comma-separated allowlist of "owner/repo" values, enforced when -R/--repo is passed. Unset allows all.GHCLI_MCP_CLI_PATHOptional path to the gh binary. Defaults to "gh" resolved via PATH.GH_TOKENgh CLI token. Leave unset to use whatever `gh auth login` already configured (OS keychain).GH_HOSTTarget a GitHub Enterprise hostname instead of github.com.GHCLI_MCP_ALLOW_WRITESet to "true" to permit state-changing gh commands. Defaults to read-only.GHCLI_MCP_ALLOWED_REPOSOptional comma-separated allowlist of "owner/repo" values, enforced when -R/--repo is passed. Unset allows all.GHCLI_MCP_CLI_PATHOptional path to the gh binary. Defaults to "gh" resolved via PATH.GH_TOKENgh CLI token. Leave unset to use whatever `gh auth login` already configured (OS keychain).GH_HOSTTarget a GitHub Enterprise hostname instead of github.com.GHCLI_MCP_ALLOW_WRITESet to "true" to permit state-changing gh commands. Defaults to read-only.GHCLI_MCP_ALLOWED_REPOSOptional comma-separated allowlist of "owner/repo" values, enforced when -R/--repo is passed. Unset allows all.GHCLI_MCP_CLI_PATHOptional path to the gh binary. Defaults to "gh" resolved via PATH.GH_TOKENgh CLI token. Leave unset to use whatever `gh auth login` already configured (OS keychain).GH_HOSTTarget a GitHub Enterprise hostname instead of github.com.GHCLI_MCP_ALLOW_WRITESet to "true" to permit state-changing gh commands. Defaults to read-only.GHCLI_MCP_ALLOWED_REPOSOptional comma-separated allowlist of "owner/repo" values, enforced when -R/--repo is passed. Unset allows all.GHCLI_MCP_CLI_PATHOptional path to the gh binary. Defaults to "gh" resolved via PATH.
Pricing
Open source
Ghcli MCP Connector FAQ
Is Ghcli MCP Connector free?
Yes. Ghcli MCP Connector is open source, so you can use and self-host it for free.
How do I add Ghcli MCP Connector to Claude Code?
Run this command in your terminal: claude mcp add ghcli-mcp-connector --env GH_TOKEN='<GH_TOKEN>' -- npx -y https://github.com/FerhatDundar/ghcli-mcp-connector/releases/download/v0.1.1/ghcli-mcp-connector-plugin-v0.1.1-darwin-arm64.zip
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.