create command is the core of MCPKit. It analyzes a website and generates a complete MCP server with tools for interacting with that site.
Usage
Arguments
The URL of the website to create an MCP server for. Must be a valid HTTP or
HTTPS URL.
Options
Skip the authentication step even if the website requires login.
Examples
Basic Usage
Create an MCP server for a public website:With Interactive URL Prompt
If you don’t provide a URL, mcpkit will prompt you:Skip Authentication
For testing or public websites:How It Works
1
URL Validation
MCPKit validates the provided URL and extracts the domain name.
2
Browser Session
A headless browser session is launched via Browserbase to load the website.
The browser runs in the cloud, so you don’t need Chrome installed locally.
3
Authentication (Optional)
If the website requires authentication, you’ll be prompted to log in:Your authentication context (cookies, session data) will be saved for future use.
4
Action Discovery
MCPKit uses AI to analyze the page and discover available actions:The AI examines:
- Interactive elements (buttons, forms, links)
- Page structure and navigation
- Common workflows and patterns
- API endpoints (if available)
5
Schema Generation
For each discovered action, MCPKit generates:
- Tool name and description
- Input parameters with types
- Zod validation schemas
- Implementation code
6
Server Generation
A complete MCP server project is created:
Your MCP server is ready to use!
Generated Server Structure
The generated MCP server includes:Main Server (src/index.ts)
Tool Implementation
Each tool is implemented with:Configuration
Generated servers can be configured via environment variables:Testing the Generated Server
After creation, test your server:Advanced Options
Custom Model for Discovery
The AI model used for action discovery can be configured in your~/.mcpkit/secrets.json:
google- Gemini models (recommended)openai- GPT modelsanthropic- Claude modelsazure- Azure OpenAI
Debugging
For verbose output during generation:Common Workflows
- Public Website
- Authenticated Website
- Internal Tool
For websites that don’t require authentication:
Troubleshooting
No actions discovered
No actions discovered
If MCPKit doesn’t find any actions:
-
Try a more specific URL - Navigate to a specific page with clear actions
-
Authenticate first - Some content only appears after login
- Check the website is accessible - Make sure it’s not behind a firewall or paywall
Authentication fails
Authentication fails
If authentication doesn’t work:
- Complete the full login flow - Don’t close the browser until you see success
- Check for 2FA - Some sites require two-factor authentication
- Verify credentials - Make sure you’re using valid credentials
- Try manual context creation:
Generated server doesn't work
Generated server doesn't work
If the generated tools don’t work correctly:
- Check Browserbase API key in the generated
.envfile - Verify authentication - Make sure saved context is still valid
- Test individual actions in the MCP Inspector
- Regenerate with updated context: