GitHub URL MCP Server

GitHub URL MCP Server

An MCP (Model Context Protocol) server for handling GitHub URLs with validation and parsing capabilities. This server provides tools to convert between GitHub repository information and URLs, with intelligent validation to distinguish between public repositories, private repositories, and non-exist

Category
Visit Server

Tools

github/build_url

Converts GitHub owner and repository name into a properly formatted GitHub URL with validation

github/parse_url

Parses a GitHub URL to extract owner, repository name, and additional path information with validation

README

GitHub URL MCP Server

smithery badge

Ask DeepWiki

<a href="https://glama.ai/mcp/servers/@kongyo2/GitHub-URL-MCP"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@kongyo2/GitHub-URL-MCP/badge" alt="GitHub URL Server MCP server" /> </a>

An MCP (Model Context Protocol) server for handling GitHub URLs with validation and parsing capabilities.

This server provides tools to convert between GitHub repository information and URLs, with intelligent validation to distinguish between public repositories, private repositories, and non-existent repositories.

Background

This tool was created to solve the problem where LLMs often struggle to properly handle GitHub-related tasks and fail to appropriately call MCP tools for GitHub operations. Many LLMs have difficulty constructing correct GitHub URLs from repository information, parsing GitHub URLs to extract meaningful components, or knowing when to use available MCP tools for GitHub-related requests. This server provides specialized tools that make these operations reliable and consistent for AI applications.

Note: This issue might be specific to the LLMs I commonly use, but providing dedicated tools ensures consistent behavior across different AI systems. Or perhaps I should just quietly invest a fortune in Claude Code's max plan instead.

Features

  • URL Building: Convert owner/repo pairs to properly formatted GitHub URLs
  • URL Parsing: Extract owner, repository, and path information from GitHub URLs
  • Smart Repository Validation: Distinguish between public, private, and non-existent repositories
  • Private Repository Detection: Identify when a repository exists but is private
  • Comprehensive Status Reporting: Clear status indicators for repository accessibility
  • Error Handling: Detailed error messages for invalid inputs
  • No Authentication Required: Works without GitHub API tokens
  • Timeout Protection: Network requests have built-in timeouts

Tools

github/build_url

Converts GitHub owner and repository name into a properly formatted GitHub URL with validation.

Parameters:

  • owner (string): GitHub username or organization name
  • repo (string): Repository name

Example:

{
  "owner": "microsoft",
  "repo": "vscode"
}

Returns:

  • https://github.com/microsoft/vscode (for public repositories)
  • https://github.com/owner/repo + 🔒 Note (for private repositories)
  • https://github.com/owner/repo + ⚠️ Warning (for non-existent repositories)
  • https://github.com/owner/repo + ❌ Error (for validation errors)

github/parse_url

Parses a GitHub URL to extract owner, repository name, and additional path information with validation.

Parameters:

  • url (string): GitHub URL to parse

Example:

{
  "url": "https://github.com/microsoft/vscode/tree/main/src"
}

Returns:

{
  "owner": "microsoft",
  "repo": "vscode",
  "url": "https://github.com/microsoft/vscode",
  "additionalPath": "tree/main/src",
  "status": "public",
  "accessible": true
}

Status Values:

  • "public": Repository is publicly accessible
  • "private": Repository exists but is private
  • "not_found": Repository does not exist
  • "error": Validation error occurred

Additional Fields:

  • accessible: Boolean indicating if the repository is publicly accessible
  • note: Information message for private repositories
  • warning: Warning message for non-existent repositories
  • error: Error message for validation failures

Development

Setup

npm install

Start the server

npm run start

Development mode with CLI interaction

npm run dev

Testing

npm run test

Linting and formatting

npm run lint
npm run format

Build

npm run build

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured