glitchstore-mcp-server
v1.0.0Model Context Protocol (MCP) server for The Glitch Store - extract clean Markdown from any URL
glitchstore-mcp-server Official Model Context Protocol (MCP) server for The Glitch Store. Connect AI coding assistants and LLM agents (Cursor, Claude Desktop, Antigravity / AGY, Windsurf, Cline, Roo Code) directly to The Glitch Store's web extraction engine to retrieve clean, clutter-free, LLM-ready Markdown from any URL. --- ⚡ Quickstart Run directly without installing using npx: Or pass your API key directly via CLI flag: --- 🔑 Authentication & Pricing To extract Markdown from web pages, you will need a Glitch Store API key. 1.
Summary extracted from the README.
glitchstore-mcp-server
Official Model Context Protocol (MCP) server for The Glitch Store.
Connect AI coding assistants and LLM agents (Cursor, Claude Desktop, Antigravity / AGY, Windsurf, Cline, Roo Code) directly to The Glitch Store's web extraction engine to retrieve clean, clutter-free, LLM-ready Markdown from any URL.
⚡ Quickstart
Run directly without installing using npx:
npx -y glitchstore-mcp-server
Or pass your API key directly via CLI flag:
npx -y glitchstore-mcp-server --api-key "your_glitch_api_key"
🔑 Authentication & Pricing
To extract Markdown from web pages, you will need a Glitch Store API key.
- Get an API Key: Sign in to The Glitch Store and visit API Keys Dashboard.
- Top-Up Credits: Simple developer-friendly pricing:
- $5 for 500 calls
- Pay-as-you-go, no monthly subscription lock-in.
- When credits run out, the server gracefully returns a 402 message with a direct link to top up.
🛠️ Ready-to-Paste Client Configurations
1. Cursor (.cursor/mcp.json)
Add to your project's .cursor/mcp.json or your global Cursor MCP configuration:
{
"mcpServers": {
"glitchstore": {
"command": "npx",
"args": ["-y", "glitchstore-mcp-server"],
"env": {
"GLITCH_API_KEY": "your_glitch_api_key_here"
}
}
}
}
2. Claude Desktop (claude_desktop_config.json)
Add the server to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"glitchstore": {
"command": "npx",
"args": ["-y", "glitchstore-mcp-server"],
"env": {
"GLITCH_API_KEY": "your_glitch_api_key_here"
}
}
}
}
3. Antigravity / AGY CLI & IDE (settings.json)
Configure in your Antigravity environment (~/.gemini/antigravity-cli/settings.json or workspace .gemini/settings.json):
{
"mcp": {
"servers": {
"glitchstore": {
"command": "npx",
"args": ["-y", "glitchstore-mcp-server"],
"env": {
"GLITCH_API_KEY": "your_glitch_api_key_here"
}
}
}
}
}
4. VS Code (Cline / Roo Code)
In your Cline / Roo Code MCP settings:
{
"mcpServers": {
"glitchstore": {
"command": "npx",
"args": ["-y", "glitchstore-mcp-server"],
"env": {
"GLITCH_API_KEY": "your_glitch_api_key_here"
},
"disabled": false,
"autoApprove": [
"glitch_extract_markdown"
]
}
}
}
🧰 Available Tools
glitch_extract_markdown
Extract clean, structured Markdown from any web page or article URL.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
url |
string |
Yes | The HTTP or HTTPS URL to extract content from. |
include_metadata |
boolean |
No | Whether to include metadata (title, author, published date, open graph tags) as frontmatter. Defaults to false. |
Example LLM Prompt:
"Extract the content from https://news.ycombinator.com and summarize the top discussions."
"Convert the documentation at https://docs.github.com/en/rest into clean Markdown and save it to docs/api.md."
⚙️ CLI Options & Environment Variables
Command Line Options:
--api-key, -k <key> Glitch Store API key (overrides GLITCH_API_KEY env)
--base-url, -u <url> Glitch Store API base URL (default: https://theglitchstore.com)
--help, -h Display help message
--version, -v Display server version
Environment Variables:
GLITCH_API_KEY: Your Glitch Store API authentication key.GLITCH_BASE_URL: Optional URL to override the hosted Glitch Store endpoint.
🚨 Error Handling & Credit Depletion
- Zero Credits (HTTP 402): When your credit balance reaches 0, the server returns an actionable notification directly to the LLM containing the link to purchase instant credits:
[Glitch Store] Error: 402 Payment Required (Zero Credits Remaining) Your Glitch Store account has run out of extraction credits. To continue extracting markdown, purchase instant top-up credits: 💳 $5 for 500 calls (no subscription required) Purchase Top-Up Credits: 👉 https://theglitchstore.com/pricing 👉 https://theglitchstore.com/billing - Invalid API Key (HTTP 401): Returns a clear prompt guiding the developer to verify or issue a new key at
https://theglitchstore.com/dashboard.
🧪 Development & Testing
# Clone the repository and enter the directory
cd packages/mcp-server
# Install dependencies
npm install
# Build TypeScript to dist/
npm run build
# Run unit tests
bun test
# Test local execution
node dist/cli.js --help
📄 License
MIT © The Glitch Store