mcp-redirect-check
v1.0.1
Published
A Model Context Protocol server for checking domain redirections and header information
Maintainers
Readme
MCP Redirect Check
A Model Context Protocol (MCP) server for checking domain redirections and header information.
Installation
npm install -g mcp-redirect-checkUsage
Once installed, the MCP tool can be used within compatible AI interfaces. It exposes the following command:
mcp_redirect_check_url
Checks redirects for a URL and returns the redirect chain with headers.
Parameters:
url: The URL to check redirects for
Example response:
{
"originalUrl": "https://example.com",
"redirectChain": [
{
"url": "https://example.com",
"statusCode": 301,
"headers": {
"location": "https://www.example.com",
"content-type": "text/html",
"...": "..."
}
},
{
"url": "https://www.example.com",
"statusCode": 200,
"headers": {
"content-type": "text/html",
"...": "..."
}
}
],
"finalUrl": "https://www.example.com",
"totalRedirects": 1
}Development
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build the project
npm run build
# Test with inspector
npm run inspectorLicense
MIT
