GitHub URL MCP Server
Enables URL building and parsing of GitHub repositories with validation capabilities to distinguish between public, private, and non-existent repositories without requiring authentication.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub URL MCP Server parse the GitHub URL https://github.com/microsoft/vscode/tree/main/src"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-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.
Related MCP server: GitHub Prod MCP
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 namerepo(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 accessiblenote: Information message for private repositorieswarning: Warning message for non-existent repositorieserror: Error message for validation failures
Development
Setup
npm installStart the server
npm run startDevelopment mode with CLI interaction
npm run devTesting
npm run testLinting and formatting
npm run lint
npm run formatBuild
npm run buildAvailable Tools
2 toolsgithub/build_urlARead-only
Converts GitHub owner and repository name into a properly formatted GitHub URL with validation
Inputs: owner (required), repo (required).
github/parse_urlARead-only
Parses a GitHub URL to extract owner, repository name, and additional path information with validation
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct and complementary purposes: one builds URLs from components, the other parses URLs into components. There is no overlap in functionality, and an agent would easily differentiate between them based on their input/output needs.
Both tools follow a consistent verb_noun pattern (build_url, parse_url) under the same 'github/' namespace. The naming is predictable and aligned, making it easy for agents to understand their roles without confusion.
With only 2 tools, the server feels thin for a GitHub-related purpose, as typical GitHub MCP servers offer more comprehensive operations (e.g., managing repos, issues, PRs). However, for the narrow scope of URL handling, it is minimally functional but limited in broader utility.
For the specific domain of GitHub URL manipulation, the tools provide complete coverage: building and parsing URLs. A minor gap might be the lack of tools for validating URLs without parsing or building, but the core operations are well-covered for this focused task.
Related MCP Connectors
Create, deploy, and operate MCP servers directly from your GitHub repositories.
GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- -licenseNot gradedqualityBmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.189,189 npm91,897MIT
- AlicenseCqualityDmaintenanceA production-ready MCP server for GitHub operations, providing tools for repository management, issues, pull requests, and more via both MCP stdio and REST API.27MIT
- AlicenseBqualityBmaintenanceA secure MCP server for interacting with GitHub issues, pull requests, repository files, and search, supporting both github.com and GitHub Enterprise Server.26AGPL 3.0
- AlicenseBqualityDmaintenanceMCP (Model Context Protocol) server for GitHub API integration. This server provides comprehensive tools for interacting with GitHub repositories, issues, pull requests, branches, and code search through a unified interface.156 npmMIT