MCPHub LabRegistrymcp-use/mcp-use
mcp-use

mcp use/mcp use

Built by mcp-use β€’ 9,536 stars

What is mcp use/mcp use?

A high-performance MCP server implementation for mcp-use/mcp-use that bridges the gap between the Model Context Protocol and external services. It allows Large Language Models to interact with your data and tools with low latency and native support.

How to use mcp use/mcp use?

1. Ensure you have an MCP-compatible client (like Claude Desktop) installed. 2. Configure your server with: npx @modelcontextprotocol/mcp-use/mcp-use 3. Restart your client and verify the new tools are available in the system catalog.
πŸ›‘οΈ Scoped (Restricted)
npx @modelcontextprotocol/mcp-use-mcp-use --scope restricted
πŸ”“ Unrestricted Access
npx @modelcontextprotocol/mcp-use-mcp-use

Key Features

Native MCP Protocol Support
High-performance Data Streaming
Type-safe Tool Definitions
Seamless Environment Integration

Optimized Use Cases

Connecting external databases to AI workflows
Automating workflow tasks via natural language
Augmenting developer productivity with specialized tools

mcp use/mcp use FAQ

Q

What is an MCP server?

MCP is an open standard that enables developers to build secure, two-way integrations between AI models and local or remote data sources.

Q

Is this server ready for production?

Yes, this server follows standard MCP security patterns and tool-restricted access.

Official Documentation

View on GitHub
<div align="center"> <a href="https://mcp-use.com"> <img alt="mcp-use" src="https://raw.githubusercontent.com/mcp-use/mcp-use/main/docs/logo/banner-mcp-use.webp" width="100%"> </a> <br /><br /> <div id="user-content-toc"> <ul align="center" style="list-style: none;"> <summary> <h1>The TypeScript framework for MCP</h1> <h3>Build, test, and ship MCP servers, ChatGPT plugins, Claude connectors</h3> </summary> </ul> </div> <p> Fully Typed, native Views and MCP Apps support, built-in Inspector and first class Agent experience. </p> <p> <a href="https://docs.mcp-use.com/v2/typescript/getting-started/welcome"><strong>Documentation</strong></a> Β· <a href="https://inspector.mcp-use.com/inspector"><strong>Inspector</strong></a> Β· <a href="#examples"><strong>Examples</strong></a> Β· <a href="https://manufact.com"><strong>Deploy</strong></a> </p> <p> <a href="https://www.npmjs.com/package/mcp-use"> <img src="https://img.shields.io/npm/v/mcp-use.svg?label=npm&amp;color=orange" alt="npm version"> </a> <a href="https://www.npmjs.com/package/mcp-use"> <img src="https://img.shields.io/npm/dw/mcp-use.svg" alt="npm downloads"> </a> <a href="https://manufact.com"> <img src="https://img.shields.io/badge/made%20by-manufact.com-blue" alt="made by manufact.com"> </a> <a href="https://github.com/mcp-use/mcp-use/blob/main/LICENSE"> <img src="https://img.shields.io/github/license/mcp-use/mcp-use" alt="MIT license"> </a> <a href="https://discord.gg/XkNkSkMz3V"> <img src="https://dcbadge.limes.pink/api/server/XkNkSkMz3V?style=flat" alt="Discord"> </a> </p> <br /><br /> </div>

[!NOTE] Migrating from v1? Give it to your agent:

Migrate this mcp-use project to v2 following
https://docs.mcp-use.com/v2/typescript/server/migration

Read the migration guide β†’

Get started

Start with your agent

Build an MCP server: https://mcp-use.com/prompt.md

Read the prompt β†’

Start with code

npx -y create-mcp-use-app@latest

Run npm run dev in the generated project Β· open http://localhost:3000/mcp/inspector

TS Docs

Everything you need to ship MCP

<table> <tr> <td width="50%" valign="top"> <h3>Fully typed</h3> <p>Zod schemas flow from tools to structured results, View props, and tool calls.</p> </td> <td width="50%" valign="top"> <h3>Native Views</h3> <p>Bind React Views directly to tools and ship interactive apps without custom extension wiring.</p> </td> </tr> <tr> <td width="50%" valign="top"> <h3>Agent-first and headless</h3> <p>Scaffold, invoke, inspect, screenshot, and deploy through your agent.</p> </td> <td width="50%" valign="top"> <h3>Built-in debugging tools</h3> <p>Inspect tools and Views in the browser or headlessly through the CLI.</p> </td> </tr> </table>

Quickstart

The scaffold gives you the server, TypeScript configuration, development scripts, Inspector, and a React view pipeline. Start it once and the MCP endpoint also serves a client-ready landing page with its connection URL and setup instructions.

Replace its index.ts with a view-bound tool like this:

<table><tr><td> <details> <summary><strong><code>index.ts</code></strong> β€” Server entry file for tool definition and metadata</summary>
import { MCPServer } from "mcp-use";
import { z } from "zod";

const server = new MCPServer({
  name: "weather-app",
  title: "Weather App",
  version: "1.0.0",
});

const weatherInput = z.object({
  city: z.string().describe("City to look up"),
});

const weatherOutput = z.object({
  city: z.string(),
  temperature: z.number(),
  conditions: z.string(),
});

export const getWeather = server.tool(
  {
    name: "get-weather",
    title: "Get weather",
    description: "Get the current weather for a city",
    inputSchema: weatherInput,
    outputSchema: weatherOutput,
    view: { name: "weather-card" },
    annotations: {
      readOnlyHint: true,
      destructiveHint: false,
      openWorldHint: true,
    },
  },
  async ({ city }) => {
    const weather = {
      city,
      temperature: 22,
      conditions: "Sunny",
    };

    return {
      content: [
        {
          type: "text",
          text: `Weather in ${city}: ${weather.conditions}, ${weather.temperature}Β°C`,
        },
      ],
      structuredContent: weather,
    };
  },
);

export default server;
</details> </td></tr></table>

Explore MCP server tools β†’

Add Views to your tools

Create views/weather-card/view.tsx. The directory name matches view.name on the tool:

<table><tr><td> <details> <summary><strong><code>view.tsx</code></strong> β€” Return a view from your tools: React weather card</summary>
import { useCallTool, useToolContext } from "mcp-use/react";

export default function WeatherCard() {
  const { status, toolOutput, toolInput } =
    useToolContext<"get-weather">();
  const refresh = useCallTool("get-weather");

  if (status === "pending") {
    return <p>Checking the weather in {toolInput?.city ?? "your city"}…</p>;
  }
  if (status === "error") return <p>Could not load the weather.</p>;

  const weather = refresh.data?.structuredContent ?? toolOutput;

  return (
    <main style={{ padding: 24 }}>
      <h2>{weather.city}</h2>
      <p>
        {weather.temperature}Β°C Β· {weather.conditions}
      </p>
      <button
        disabled={refresh.isPending}
        onClick={() => void refresh.callTool({ city: weather.city })}
      >
        {refresh.isPending ? "Refreshing…" : "Refresh"}
      </button>
      {refresh.error && <p>{refresh.error.message}</p>}
    </main>
  );
}
</details> </td></tr></table> <p align="center"> <img src="https://raw.githubusercontent.com/mcp-use/mcp-use/main/static/readme/chatgpt-hello-world.jpg" alt="Hello World MCP App rendered in a ChatGPT conversation" width="100%" /> <br /> <sub>Build interactive UI experiences within ChatGPT with mcp-use.</sub> </p>

Build your first MCP App β†’

Build

Create the production build:

npm run build

Inspect

Start development mode to serve the MCP endpoint at http://localhost:3000/mcp. The Inspector is automatically available at http://localhost:3000/mcp/inspector:

npm run dev
<p align="center"> <img src="https://raw.githubusercontent.com/mcp-use/mcp-use/main/static/readme/inspector-hello-world.jpg" alt="Hello World MCP App rendered in the mcp-use Inspector" width="100%" /> <br /> <sub>Invoke tools, validate inputs, and inspect interactive Views in the same development loop.</sub> </p>

Start a tunnel from the Inspector UI or run mcp-use dev --tunnel to get a public URL for your local MCP server and test it with ChatGPT and Claude before deployment. Learn more about tunneling β†’

Inspect the same server headlessly from the terminal, invoke representative tools, and capture a View screenshot:

npm install --save-dev @mcp-use/client
npx mcp-use client connect local http://localhost:3000/mcp
npx mcp-use client local tools list
npx mcp-use client local tools call get-weather city=Tokyo
npx mcp-use screenshot \
  --server local \
  --tool get-weather \
  city=Tokyo \
  --output weather-card.png

Deploy

Ship to Manufact and get observability, analytics, evals, submission readiness, and Git-based preview environments for free.

npm run deploy

Prefer to run it yourself? Follow the self-hosting guide β†’.

How mcp-use compares

mcp-use builds on the official TypeScript SDK v2 and adds first-class Views, typed tool-to-UI contracts, an optimized stateless runtime, the Inspector, screenshot verification, agent-first CLI workflows, and deployment.

block-beta
  columns 7

  metric["Metric"] mcp["mcp-use v2"] fastmcp["FastMCP TS"] official["Official SDK v2*"] xmcp["xmcp"] skybridge["Skybridge"] handler["mcp-handler"]

  speed["Speed"] speedMcp["10,982 ops/s"] speedFast["6,628 ops/s"] speedOfficial["8,050 ops/s"] speedXmcp["6,585 ops/s"] speedSkybridge["8,116 ops/s"] speedHandler["6,324 ops/s"]
  install["MCP App<br/>dev stack"] installMcp["74.4 MiB"] installFast["122.5 MiB"] installOfficial["99.0 MiB"] installXmcp["121.9 MiB"] installSkybridge["137.5 MiB"] installHandler["388.0 MiB"]
  packages["Installed<br/>packages"] packagesMcp["51"] packagesFast["180"] packagesOfficial["119"] packagesXmcp["171"] packagesSkybridge["300"] packagesHandler["130"]
  views["Views"] viewsMcp["βœ…"] viewsFast["βœ…"] viewsOfficial["◐ Extension"] viewsXmcp["βœ…"] viewsSkybridge["βœ…"] viewsHandler["❌"]
  nativeViews["Native Views<br/>on MCP 2026"] nativeViewsMcp["βœ…"] nativeViewsFast["βœ…"] nativeViewsOfficial["❌"] nativeViewsXmcp["❌"] nativeViewsSkybridge["❌"] nativeViewsHandler["❌"]
  oauth["One-line<br/>OAuth adapters"] oauthMcp["βœ…"] oauthFast["◐ Provider/proxy"] oauthOfficial["◐ Primitives"] oauthXmcp["βœ…"] oauthSkybridge["βœ…"] oauthHandler["❌"]
  protocol["MCP 2026<br/>protocol"] protocolMcp["βœ…"] protocolFast["βœ…"] protocolOfficial["βœ…"] protocolXmcp["❌"] protocolSkybridge["❌"] protocolHandler["❌"]
  screenshot["Built-in View<br/>screenshot CLI"] screenshotMcp["βœ…"] screenshotFast["❌"] screenshotOfficial["❌"] screenshotXmcp["❌"] screenshotSkybridge["❌"] screenshotHandler["❌"]
  tunnel["Built-in<br/>tunneling"] tunnelMcp["βœ…"] tunnelFast["❌"] tunnelOfficial["❌"] tunnelXmcp["❌"] tunnelSkybridge["βœ…"] tunnelHandler["❌"]
  inspector["Built-in<br/>Inspector"] inspectorMcp["βœ…"] inspectorFast["βœ…"] inspectorOfficial["❌"] inspectorXmcp["❌"] inspectorSkybridge["◐ Limited"] inspectorHandler["❌"]

  classDef metricLabel fill:#6e76811a,font-weight:bold
  classDef brand fill:#2ea04333,stroke:#2da44e,stroke-width:3px,font-weight:bold
  classDef header fill:#6e76811a,font-weight:bold
  classDef value fill:#6e76810f,stroke-width:1px
  classDef leader fill:#2ea0432e,stroke:#2da44e,stroke-width:2px,font-weight:bold
  classDef partial fill:#bb80092e,stroke:#bf8700,stroke-width:2px,font-weight:bold
  classDef unavailable fill:#6e76810f,opacity:0.72

  class metric,speed,install,packages,views,nativeViews,oauth,protocol,screenshot,tunnel,inspector metricLabel
  class mcp brand
  class fastmcp,official,xmcp,skybridge,handler header
  class speedFast,speedOfficial,speedXmcp,speedSkybridge,speedHandler,installFast,installOfficial,installXmcp,installSkybridge,installHandler,packagesFast,packagesOfficial,packagesXmcp,packagesSkybridge,packagesHandler value
  class speedMcp,installMcp,packagesMcp,viewsMcp,viewsFast,viewsXmcp,viewsSkybridge,nativeViewsMcp,nativeViewsFast,oauthMcp,oauthXmcp,oauthSkybridge,protocolMcp,protocolFast,protocolOfficial,screenshotMcp,tunnelMcp,tunnelSkybridge,inspectorMcp,inspectorFast leader
  class oauthFast,viewsOfficial,oauthOfficial,inspectorSkybridge partial
  class viewsHandler,nativeViewsOfficial,nativeViewsXmcp,nativeViewsSkybridge,nativeViewsHandler,oauthHandler,protocolXmcp,protocolSkybridge,protocolHandler,screenshotFast,screenshotOfficial,screenshotXmcp,screenshotSkybridge,screenshotHandler,tunnelFast,tunnelOfficial,tunnelXmcp,tunnelHandler,inspectorOfficial,inspectorXmcp,inspectorHandler unavailable

<sub>* Includes @modelcontextprotocol/ext-apps, Vite, and zod for an MCP Apps-capable stack.</sub>

<sub>Install rows compare custom React MCP App development stacks. FastMCP therefore includes the Apps extension, React, Vite React plugin, Vite, TypeScript, and zod rather than only its narrower server-side component workflow. Size is actual node_modules disk usage after a normal npm install, including required peer dependencies.</sub>

Read the detailed benchmark report β†’

Examples

Remix a complete MCP App, inspect the source, or deploy it as a starting point:

PreviewAppWhat it demonstrates
<img src="https://raw.githubusercontent.com/mcp-use/mcp-chart-builder/main/repo-assets/demo.gif" alt="Chart Builder demo" width="280">Chart BuilderStructured data rendered as interactive charts Β· Open demo
<img src="https://raw.githubusercontent.com/mcp-use/mcp-diagram-builder/main/repo-assets/demo.gif" alt="Diagram Builder demo" width="280">Diagram BuilderCreate and edit diagrams through MCP tools Β· Open demo
<img src="https://raw.githubusercontent.com/mcp-use/mcp-maps-explorer/main/repo-assets/demo.gif" alt="Maps Explorer demo" width="280">Maps ExplorerSearch, detail tools, and an interactive map view Β· Open demo

Browse all TypeScript examples β†’

Ecosystem

PackageUse it for
mcp-useTypeScript v2 server framework, React views, and CLI
@mcp-use/clientConnect to MCP servers from Node.js, browsers, React, and sandboxes
@mcp-use/agentBuild model-powered agents on top of MCP clients
@mcp-use/inspectorInspect and debug MCP servers and apps
@mcp-use/tunnelExpose local HTTP, WebSocket, and MCP servers through the managed relay
create-mcp-use-appScaffold servers and interactive apps
mcp-use for PythonBuild Python MCP servers, clients, and agents

Protocol conformance

<div align="center"> <a href="https://github.com/mcp-use/mcp-use/actions/workflows/conformance.yml"> <img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tonxxd/6edf670f0446dc9f7a1f32d6bfda2b70/raw/python-conformance.json" alt="Python MCP conformance"> </a> <a href="https://github.com/mcp-use/mcp-use/actions/workflows/conformance.yml"> <img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tonxxd/6edf670f0446dc9f7a1f32d6bfda2b70/raw/python-client-conformance.json" alt="Python MCP client conformance"> </a> <a href="https://github.com/mcp-use/mcp-use/actions/workflows/conformance.yml"> <img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tonxxd/6edf670f0446dc9f7a1f32d6bfda2b70/raw/typescript-conformance.json" alt="TypeScript MCP conformance"> </a> <a href="https://github.com/mcp-use/mcp-use/actions/workflows/conformance.yml"> <img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tonxxd/6edf670f0446dc9f7a1f32d6bfda2b70/raw/typescript-node-client-conformance.json" alt="TypeScript MCP client conformance"> </a> </div>

Security and community

Contributors

Built by Pietro, Luigi, Enrico, and the mcp-use community.

<a href="https://github.com/mcp-use/mcp-use/graphs/contributors"> <img src="https://contrib.rocks/image?repo=mcp-use/mcp-use" alt="mcp-use contributors"> </a>

Global Ranking

7.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "mcp-use-mcp-use": { "command": "npx", "args": ["mcp-use-mcp-use"] } } }