How to Connect CastHTML Remote MCP to Windsurf
Add CastHTML's remote MCP server to Windsurf in about a minute.
Step-by-step
- Edit mcp_config.jsonAdd the
serverUrlconfig above to~/.codeium/windsurf/mcp_config.jsonand refresh in Cascade. - AuthorizeAdd an
Authorization: Bearer <your-key>header in the server's config โ get the credential from https://casthtml.com. - VerifyVerify in the browser: paste
https://casthtml.com/mcpinto remotemcp.net/inspector and run initialize + tools/list.
Troubleshooting OAuth / 401
- A
401 Unauthorizedon first connect is normal โ the endpoint is OAuth-protected; let Windsurf finish the browser consent flow. - If the consent window never opens, remove and re-add the server, then retry.
- Check the exact challenge at our OAuth debugger.
- Run the live endpoint through the online inspector to see the raw JSON-RPC exchange.
๐ Client-side only โ never leaves your browser.
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"casthtml": {
"url": "https://casthtml.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}claude mcp add --transport http casthtml https://casthtml.com/mcp
With credential header:
claude mcp add --transport http casthtml https://casthtml.com/mcp --header "Authorization: Bearer YOUR_API_KEY"
Or add to .vscode/mcp.json:
{
"servers": {
"casthtml": {
"type": "http",
"url": "https://casthtml.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://casthtml.com/mcp - Provide your API key / Bearer token when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"casthtml": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://casthtml.com/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"casthtml": {
"serverUrl": "https://casthtml.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"casthtml": {
"url": "https://casthtml.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.codex/config.toml โ Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.casthtml] url = "https://casthtml.com/mcp" bearer_token_env_var = "CASTHTML_TOKEN"
Add to cline_mcp_settings.json (Cline โ MCP Servers โ Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"casthtml": {
"type": "streamableHttp",
"url": "https://casthtml.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.gemini/settings.json under mcpServers โ httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"casthtml": {
"httpUrl": "https://casthtml.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Tools exposed by CastHTML (5)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| publish_report ~140 tok | ๐ Write | Publish an HTML page or Markdown report into a secure sandbox and get a shareable /r/{slug} link. | content*: stringtitle: stringformat: stringrender_mode: stringis_public: boolean |
| update_report ~97 tok | ๐ Write | Update an existing report in place by id_or_slug while keeping the share link unchanged. | id_or_slug*: stringcontent*: stringtitle: string |
| list_reports ~40 tok | ๐ข Read | List the most recent 50 reports on the current account. | โ |
| get_report ~56 tok | ๐ข Read | Fetch report metadata and body by id_or_slug. | id_or_slug*: string |
| delete_report ~63 tok | ๐ด Destructive | Permanently delete a report by id_or_slug and invalidate its share link. | id_or_slug*: string |
Connect CastHTML to another client
Other servers for Windsurf
GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.
Notion's official hosted MCP server. Agents can search your workspace, read and create pages, and query databases over Streamable HTTP or SSE.
Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.
Figma's official remote MCP server. Agents can pull design context, variables, Code Connect mappings and screenshots from your Figma files.
AWS Knowledge's hosted remote MCP server. AWS's fully-managed public knowledge MCP gives agents access to the latest AWS documentation, API references, What's New posts and architectural guidance across all AWS services. It is public and unauthenticated โ connect and call tools immediately.
Stripe's official remote MCP server at mcp.stripe.com. Agents can query customers, payment intents and subscriptions and invoke Stripe API operations with OAuth.