Local Scanner MCP Server logo

Local Scanner MCP Server

by treaties-ai

The Local Scanner MCP Server allows AI assistants to interact with locally running web applications and code files. It provides tools for validating code, capturing screenshots, and analyzing web pages running on localhost.

View on GitHub

Last updated: N/A

What is Local Scanner MCP Server?

The Local Scanner MCP Server is a Model Context Protocol (MCP) server designed to extend the capabilities of AI assistants by enabling them to interact with local code and localhost URLs. It provides tools for testing, debugging, and validating local web applications and code.

How to use Local Scanner MCP Server?

To use the server, first clone the repository, install dependencies, build the project, and start the server. Then, configure your MCP client (e.g., Cline for VSCode or Cascade for WindSurf) to connect to the server by specifying the command and arguments for running the server's entry point. You can then use the provided tools by sending requests to the server with the appropriate parameters.

Key features of Local Scanner MCP Server

  • Scan localhost URLs and capture console logs

  • Capture screenshots of localhost URLs

  • Lint JavaScript, TypeScript, and CSS code files

  • Validate HTML content or URLs for standards compliance

Use cases of Local Scanner MCP Server

  • Testing and debugging locally running web applications with AI assistance

  • Capturing screenshots for visual verification during development

  • Ensuring code quality and standards compliance through linting

  • Validating HTML for accessibility and standards compliance

  • Integrating AI capabilities into local development workflows

FAQ from Local Scanner MCP Server

What is MCP?

MCP stands for Model Context Protocol, a protocol that allows AI models to interact with external tools and services.

What types of files can be linted?

The server supports linting JavaScript, TypeScript, and CSS code files.

Can I specify actions to perform on a localhost URL before capturing a screenshot?

Yes, the scan_localhost tool allows you to specify a list of actions (e.g., click, type, wait) to perform on the page before capturing console logs and checking for runtime errors.

How do I configure the server to work with Cline (VSCode)?

Edit the MCP settings file at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json and add a configuration for the local-scanner server.

What license is the server released under?

The server is released under the MIT License.