kage-mcp

kage-mcp

A lightweight MCP server for parsing HTML, fetching URLs, rendering terminal-style screenshots, and executing JavaScript on static HTML without external dependencies.

Category
Visit Server

README

KAGE MCP — Lightweight HTML Parsing for AI Agents

kage-mcp is a JSON-RPC MCP server that parses HTML, fetches URLs, renders terminal-style screenshots, and executes JavaScript on static HTML. It is packaged as a single 92MB executable — no Python, no Node.js, no browser required.

Quick Start

Install

pip install kage-mcp

Or download kage-mcp.exe from GitHub Releases.

Run

kage-mcp

Then configure in your MCP client (Cline, Claude Desktop, etc.):

{
  "mcpServers": {
    "kage": {
      "command": "kage-mcp",
      "args": []
    }
  }
}

Manual Test

# List tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | kage-mcp

# Parse HTML
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"kage_parse_html","arguments":{"html":"<h1>Hello</h1>","selector":"h1"}}}' | kage-mcp

# Fetch URL
echo '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"kage_fetch_url","arguments":{"url":"https://example.com","selector":"h1"}}}' | kage-mcp

Tools

Tool Description
kage_parse_html Parse an HTML string and extract structured data
kage_fetch_url Fetch a URL and extract structured data from the response
kage_render Render HTML to a terminal-style PNG image (green-on-black monospace)
kage_execute_js Execute JavaScript code against a DOM context and return the result

Limitations

KAGE is an HTML parsing engine, not a full browser:

  • ❌ Does not execute external JavaScript from <script src="..."> tags
  • ❌ Does not render SPAs (React, Vue, Angular)
  • ❌ Screenshot output is terminal-style (green-on-black monospace), not pixel-perfect
  • ❌ No WebSocket / WebGL / Canvas support
  • ❌ Fetch is HTTP-only (no HTTPS cert validation bypass)

What it can do:

  • ✅ Parse any HTML string into structured JSON
  • ✅ Fetch URLs and extract content via CSS selectors
  • ✅ Execute inline JS on a parsed DOM (no network requests)
  • ✅ Works as a drop-in MCP server — no extra dependencies

Requirements

  • Windows 10+ (64-bit)
  • No Python, Node.js, or browser needed

License

MIT

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