MCP tools โ Turn Any Website into an AI Tool in 60 Seconds
Pricing
from $20.00 / 1,000 results
MCP tools โ Turn Any Website into an AI Tool in 60 Seconds
Automatically extract buttons, inputs & forms from any site and get ready-to-use MCP (Model Context Protocol) tools for Cursor, Claude, Claude Desktop, Windsurf, Cline, and any MCP-compatible AI.
Pricing
from $20.00 / 1,000 results
Rating
0.0
(0)
Developer
Actor stats
1
Bookmarked
8
Total users
0
Monthly active users
2 months ago
Last modified
Categories
Share
MCP.tools Actor โ Turn any site into an AI tool
๐ Price
๐ Python 3.11
๐ Apify
๐ Playwright
๐ License
Transform any website into an AI tool with MCP (Model Context Protocol) tools. This Apify Actor automatically extracts interactive elements from web pages and generates MCP-compatible tool definitions that can be used with Cursor, Claude, and other AI assistants.
๐ Features
- ๐ฏ Interactive Element Extraction: Automatically finds buttons, inputs, dropdowns, and links
- ๐ช Cookie Banner Removal: Removes OneTrust, Cookiebot, and other common cookie banners
- ๐ง MCP Tools Generation: Creates MCP-compatible tool definitions with safe names and descriptions
- ๐ธ Visual Preview: Generates beautiful preview pages with one-click integration buttons
- ๐ก๏ธ Error Handling: Automatic screenshot capture and error logging
- ๐ Structured Output: Clean JSON format ready for MCP integration
๐ Example Input
{"url":"https://example.com","cookies":[{"name":"session_id","value":"abc123"}],"removeBanners":true,"maxActions":50}
Input Parameters
- url (required): The website URL to process
- cookies (optional): List of cookies to set for authenticated pages
- removeBanners (default:
true): Automatically remove cookie consent banners - maxActions (default:
50, min:5, max:200): Maximum number of interactive elements to extract
๐ค Example Output
The actor generates three outputs:
1. MCP Tools JSON (mcp-{id}.json)
{"tools":[{"name":"button_submit_form","description":"Click the Submit Form button","input_schema":{"type":"object","properties":{"selector":{"type":"string","description":"CSS selector for the Submit Form button","default":"#submit-btn"}},"required":["selector"]}},{"name":"input_username","description":"Enter text in the Enter username input field","input_schema":{"type":"object","properties":{"selector":{"type":"string","description":"CSS selector for the Enter username input field","default":"#username"}},"required":["selector"]}}]}
2. Dataset Record
{"mcpJsonUrl":"https://api.apify.com/v2/key-value-stores/.../records/mcp-abc123.json","previewUrl":"https://api.apify.com/v2/key-value-stores/.../records/preview-abc123.html","screenshotUrl":"https://api.apify.com/v2/key-value-stores/.../records/screenshot-abc123.png","toolCount":12,"url":"https://example.com","runId":"abc123","actionsCount":12}
3. Preview HTML Page
A beautiful preview page with:
- ๐ Statistics dashboard (tools count, actions count, run ID)
- ๐ One-click buttons for Cursor and Claude integration
- ๐ Visual action cards showing all extracted elements
- ๐ง Pretty-printed MCP JSON for easy inspection
๐ฐ Pricing
$0.03 per run - Affordable pricing for transforming websites into AI tools.
๐ ๏ธ Installation
Local Development
- Clone the repository:
git clone <repository-url>cd mcp-website-tool
- Install dependencies:
$pip install-e".[dev]"
- Install Playwright browsers:
$playwright install chromium
Running Tests
$pytest
๐ Usage
Via Apify Platform
- Go to Apify Console
- Find the MCP.tools Actor
- Configure input with your target URL
- Run and get your MCP tools JSON!
Via API
curl-X POST "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/run-sync"\-H"Authorization: Bearer YOUR_API_TOKEN"\-H"Content-Type: application/json"\-d'{"url": "https://example.com","maxActions": 50}'
๐๏ธ Project Structure
โโโ src/โ โโโ main.py # Main Actor entry pointโ โโโ types.py # Pydantic models for validationโ โโโ browser.py # Playwright browser managementโ โโโ extractor.py # Interactive element extractionโ โโโ mcp_generator.py # MCP tools generationโ โโโ utils.py # Utility functionsโโโ tests/ # Comprehensive test suiteโโโ input_schema.json # Apify input schemaโโโ apify.json # Apify actor configurationโโโ README.md # This file
๐ง Development
Code Quality
black src testsruff check src testsmypy srcpytest
Test-Driven Development
This project follows TDD principles:
- Write failing tests (red)
- Implement minimal code (green)
- Refactor while keeping tests passing
๐ฆ Dependencies
- apify: Apify SDK for actor development
- playwright: Browser automation framework
- pydantic: Data validation using Python type annotations
- structlog: Structured logging
๐ License
MIT License - see LICENSE file for details
๐ค Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch
- Write tests first (TDD)
- Implement the feature
- Ensure all tests pass
- Submit a pull request
๐ Support
For issues and questions, please open an issue on the repository.
Made with โค๏ธ for the AI community
