@aipp/ghost-api-mcp
v1.0.0
Published
Model Context Protocol (MCP) server for Ghost-API: Stealth Cloudflare bypass & structured JSON extraction
Readme
👻 Ghost-API MCP Server (@aipp/ghost-api-mcp)
Official Model Context Protocol (MCP) server for Ghost-API.
Empowers Claude Desktop, Cursor, Codex, and autonomous AI agents to extract public web pages as reader Markdown or validated JSON.
⚡ The AI Agent Promise
- Direct extraction: Browser rendering is currently disabled while outbound network safeguards are being validated. Requests that require a browser may fail.
- Zero Subscriptions: Flat $0.02 per successful extraction.
- Free Cache Hits: Identical URLs within TTL cost $0.00.
- 100% Refund on Failures: Failed or timed-out extractions cost $0.00.
- Transparent Unit Economics: Every response includes
cost_usd,remaining_balance_usd,engine_used, andresponse_time_msso AI agents can manage their own budget.
🚀 Quickstart & Configuration
1. Claude Desktop (claude_desktop_config.json)
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ghost-api": {
"command": "npx",
"args": ["-y", "@aipp/ghost-api-mcp"],
"env": {
"GHOST_API_KEY": "gk_live_your_api_key_here"
}
}
}
}2. Cursor IDE (.cursor/mcp.json)
{
"mcpServers": {
"ghost-api": {
"command": "npx",
"args": ["-y", "@aipp/ghost-api-mcp"],
"env": {
"GHOST_API_KEY": "gk_live_your_api_key_here"
}
}
}
}🛠️ Available MCP Tools
| Tool | Purpose | Primary Inputs |
|---|---|---|
| ghost_extract_json | Extract structured schema data using Gemini AI | url, schema, prompt |
| ghost_markdown | Clean reader-mode Markdown for LLM analysis / RAG | url, render_js (optional) |
| ghost_html | HTML from the direct extraction path | url, render_js (optional) |
| ghost_extract | Universal extractor with full parameter options | url, extraction_mode, schema |
| ghost_balance | Real-time USD balance & spent tracker | none |
| ghost_status | Server operational health & ping latency | none |
📊 Example Tool Response (With Budget Telemetry)
{
"data": {
"product_name": "Ultra Running Shoes",
"price_usd": 129.99,
"in_stock": true
},
"meta": {
"cost_usd": 0.02,
"remaining_balance_usd": 4.98,
"engine_used": "direct",
"cache_hit": false,
"response_time_ms": 1120,
"model_used": "google/gemini-2.5-flash"
}
}Get your API key at https://ghost.aipp.dev. New keys begin with a zero balance; check the dashboard for funding options.
