MCP.so
Sign In
Servers

SvelteKit & Vercel MCP Starter

@axel-rock

Overview

What is SvelteKit & Vercel MCP Starter?

It is an example project that shows how to set up and deploy a Model Context Protocol (MCP) server and client using SvelteKit on Vercel. It leverages the @vercel/mcp-adapter to integrate AI tool‑calling capabilities, and is intended for SvelteKit developers who want to add MCP support to their applications.

How to use SvelteKit & Vercel MCP Starter?

Clone the repository, copy .env.example to .env, and fill in your ANTHROPIC_API_KEY and REDIS_URL. Install dependencies with pnpm install, then start the development server with pnpm run dev. For deployment, connect your Git repository to Vercel and configure the same environment variables in the project settings.

Key features of SvelteKit & Vercel MCP Starter

  • SvelteKit framework integration
  • Vercel deployment with serverless functions
  • @vercel/mcp-adapter for simplified MCP server creation
  • Basic MCP tool example in a SvelteKit route
  • MCP client example in +page.svelte
  • TypeScript for robust code

Use cases of SvelteKit & Vercel MCP Starter

  • Learning how to add MCP tool‑calling to a SvelteKit application.
  • Prototyping AI‑powered features on Vercel.
  • Deploying a minimal MCP server using standard web technologies.
  • Adapting MCP examples from Next.js to SvelteKit.

FAQ from SvelteKit & Vercel MCP Starter

What runtime and dependencies are required?

Node.js v18 or later, pnpm, and a Vercel account (optional for local development). You also need an Anthropic API key (or an alternative LLM provider key) and a Redis URL (for SSE transport state management). The MCP TypeScript SDK version used is 1.10.2.

Which transports does this server support?

The primary example uses StreamableHTTPClientTransport. The @vercel/mcp-adapter also supports SSE, which requires a properly configured Redis instance for state management.

Are there any known limitations or issues?

Deploying the MCP server to Vercel Edge Functions may have limitations as of this example’s creation; standard serverless functions are recommended. There was also a known issue with tool arguments in later MCP SDK versions, so

Tags

More from Developer Tools