Skip to main content
Create an mcp-use app, run it locally, and render its View in the Inspector. The generated project includes a server, two tools, and a React View.
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

The scaffolder can install dependencies and the mcp-apps-builder coding-agent skill. Accept the defaults when prompted.

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.ts creates the server and registers the show-app and say-hello tools.
  • views/my-view/view.tsx contains the React View rendered by show-app.
  • mcp-env.d.ts connects exported tool definitions to typed React hooks.
  • public/ contains assets served by the framework.

Understand the View-bound tool

The generated show-app tool imports from mcp-use, declares inputSchema and outputSchema, and binds the View with view: { name: "my-view" }.
index.ts
Assign statically declared tools to exported constants. The generated 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 match view.name. Use useToolContext() to read the invocation that rendered the View:
views/my-view/view.tsx
When the tool succeeds, 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:
The command refreshes mcp-env.d.ts and runs TypeScript without emitting build files. You can also call the server from the terminal:

Deploy the project

Deploy the generated project to Manufact Cloud:
The first deployment signs you in and links the local project. See the Manufact deployment guide for environment variables, regions, and subsequent deployments.

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.
Need help? Join our Discord or visit GitHub.