This quickstart uses the
mcp-apps template. To build a tool-only server, use
--template mcp-server. For an MCP client or agent, start with the MCP
Client or MCP
Agent documentation.Prerequisites
- Node.js 22.22.2 or later
- npm, pnpm, or Bun
Scaffold an mcp-use app
--template, the scaffolder does not prompt. --install
installs dependencies with the package manager that ran the command; without
it, run npm install, pnpm install, or bun install in the project before
starting the server. The scaffolder also installs the mcp-apps-builder
coding-agent skill, which requires Git. Pass --no-skills to skip it.
Run the development server
mcp-use dev serves the MCP endpoint at http://localhost:3000/mcp and the
Inspector at http://localhost:3000/mcp/inspector. The Inspector opens
automatically in an interactive terminal.
Explore the generated project
index.tscreates the server and registers theshow-appandsay-hellotools.views/my-view/view.tsxcontains the React View rendered byshow-app.mcp-env.d.tsconnects exported tool definitions to typed React hooks.public/contains assets served by the framework.
Understand the View-bound tool
The generatedshow-app tool imports from mcp-use, declares inputSchema and
outputSchema, and binds the View with view: { name: "my-view" }.
index.ts
mcp-env.d.ts uses those exports to type View hooks. Export the server as the
default value so the CLI can run, build, and deploy it.
Read tool results in the View
The View directory must matchview.name. Use useToolContext() to read the
invocation that rendered the View:
views/my-view/view.tsx
view.toolOutput is the typed value returned in
structuredContent. The host and model receive the text in content.
Check the project
Run the generated type check after changing tools or Views:mcp-env.d.ts and runs TypeScript without emitting build
files.
You can also call the server from the terminal:
Deploy the project
Sign in to Manufact, then deploy the generated project.deploy does not sign
you in; without saved credentials or MCP_USE_API_KEY, it exits with
Not logged in.
Next steps
Tools
Define validated inputs, outputs, annotations, and View-bound results.
MCP Apps
Build production Views and integrate with MCP hosts.
Inspector
Test and debug your server interactively.
Deployment
Publish the server and configure production environments.