Skip to main content
The 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

string
required
The URL of the website to create an MCP server for. Must be a valid HTTP or HTTPS URL.

Options

boolean
default:"false"
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:
Supported providers:
  • google - Gemini models (recommended)
  • openai - GPT models
  • anthropic - Claude models
  • azure - Azure OpenAI

Debugging

For verbose output during generation:

Common Workflows

For websites that don’t require authentication:

Troubleshooting

If MCPKit doesn’t find any actions:
  1. Try a more specific URL - Navigate to a specific page with clear actions
  2. Authenticate first - Some content only appears after login
  3. Check the website is accessible - Make sure it’s not behind a firewall or paywall
If authentication doesn’t work:
  1. Complete the full login flow - Don’t close the browser until you see success
  2. Check for 2FA - Some sites require two-factor authentication
  3. Verify credentials - Make sure you’re using valid credentials
  4. Try manual context creation:
If the generated tools don’t work correctly:
  1. Check Browserbase API key in the generated .env file
  2. Verify authentication - Make sure saved context is still valid
  3. Test individual actions in the MCP Inspector
  4. Regenerate with updated context:

Next Steps

Manage Contexts

Learn how to manage authentication contexts

Configure Secrets

Update your API keys and settings

View Examples

See example generated servers