MCPcopy Index your code
hub / github.com/mcp-use/mcp-use

github.com/mcp-use/mcp-use @1.33.0 sqlite

repository ↗ · DeepWiki ↗ · release 1.33.0 ↗
5,073 symbols 16,924 edges 944 files 1,705 documented · 34% 2 cross-repo links
README

  <img alt="mcp use logo" src="https://github.com/mcp-use/mcp-use/raw/1.33.0/static/logo_black.svg" width="60%" >

 

<a href="https://mcp-use.com/docs" alt="Documentation">
    <img src="https://img.shields.io/badge/mcp--use-docs-blue?labelColor=white" /></a>
<a href="https://manufact.com" alt="Website">
    <img src="https://img.shields.io/badge/made by-manufact.com-blue" /></a>
<a href="https://github.com/mcp-use/mcp-use/blob/main/LICENSE" alt="License">
    <img src="https://img.shields.io/github/license/mcp-use/mcp-use" /></a>
<a href="https://discord.gg/XkNkSkMz3V" alt="Discord">
    <img src="https://dcbadge.limes.pink/api/server/XkNkSkMz3V?style=flat" /></a>



<a href="https://mcp-use.com/docs/python" alt="Python docs">
    <img src="https://img.shields.io/badge/python-docs-blue?labelColor=white&logo=python" alt="Badge"></a>
<a href="https://pypi.org/project/mcp_use/" alt="PyPI Version">
    <img src="https://img.shields.io/pypi/v/mcp_use.svg"/></a>
<a href="https://pypi.org/project/mcp_use/" alt="PyPI Downloads">
    <img src="https://static.pepy.tech/badge/mcp-use" /></a>



<a href="https://mcp-use.com/docs/typescript" alt="Typescript Documentation">
    <img src="https://img.shields.io/badge/typescript-docs-blue?labelColor=white&logo=typescript" alt="Badge"></a>
<a href="https://www.npmjs.com/package/mcp-use" alt="NPM Version">
    <img src="https://img.shields.io/npm/v/mcp-use.svg"/></a>
<a href="https://www.npmjs.com/package/mcp-use" alt="NPM Downloads">
    <img src="https://img.shields.io/npm/dw/mcp-use.svg"/></a>

About

mcp-use is the fullstack MCP framework to build MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.

  • Build with mcp-use SDK (ts | py): MCP Servers and MCP Apps
  • Preview on mcp-use MCP Inspector (online | oss): Test and debug your MCP Servers and Apps
  • Deploy on Manufact MCP Cloud: Connect your GitHub repo and have your MCP Server and App up and running in production with observability, metrics, logs, branch-deployments, and more

Documentation

Visit our docs or jump to a quickstart (TypeScript | Python)

Skills for Coding Agents

Using Claude Code, Codex, Cursor or other AI coding agents?

Install mcp-use skill for MCP Apps

Quickstart: MCP Servers and MCP Apps

TypeScript

Build your first MCP Server or MPC App:

npx create-mcp-use-app@latest

Or create a server manually:

import { MCPServer, text } from "mcp-use/server";
import { z } from "zod";

const server = new MCPServer({
  name: "my-server",
  version: "1.0.0",
});

server.tool({
  name: "get_weather",
  description: "Get weather for a city",
  schema: z.object({ city: z.string() }),
}, async ({ city }) => {
  return text(`Temperature: 72°F, Condition: sunny, City: ${city}`);
});

await server.listen(3000);
// Inspector at http://localhost:3000/inspector

→ Full TypeScript Server Documentation

MCP Apps

MCP Apps let you build interactive widgets that work across Claude, ChatGPT, and other MCP clients — write once, run everywhere.

Server: define a tool and point it to a widget:

import { MCPServer, widget } from "mcp-use/server";
import { z } from "zod";

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

server.tool({
  name: "get-weather",
  description: "Get weather for a city",
  schema: z.object({ city: z.string() }),
  widget: "weather-display", // references resources/weather-display/widget.tsx
}, async ({ city }) => {
  return widget({
    props: { city, temperature: 22, conditions: "Sunny" },
    message: `Weather in ${city}: Sunny, 22°C`,
  });
});

await server.listen(3000);

Widget: create a React component in resources/weather-display/widget.tsx:

import { useWidget, type WidgetMetadata } from "mcp-use/react";
import { z } from "zod";

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

export const widgetMetadata: WidgetMetadata = {
  description: "Display weather information",
  props: propSchema,
};

const WeatherDisplay: React.FC = () => {
  const { props, isPending, theme } = useWidget<z.infer<typeof propSchema>>();
  const isDark = theme === "dark";

  if (isPending) return 

Loading...

;

  return (



      <h2>{props.city}</h2>


{props.temperature}° — {props.conditions}





  );
};

export default WeatherDisplay;

Widgets in resources/ are auto-discovered — no manual registration needed.

Visit MCP Apps Documentation

Templates

Ready-to-use MCP Apps you can deploy in one click or remix as your own.

Preview Name Tools Demo URL Repo Deploy
Chart Builder Chart Builder create-chart Open URL mcp-use/mcp-chart-builder Deploy to mcp-use
Diagram Builder Diagram Builder create-diagram, edit-diagram Open URL mcp-use/mcp-diagram-builder Deploy to mcp-use
Slide Deck Slide Deck create-slides, edit-slide Open URL mcp-use/mcp-slide-deck Deploy to mcp-use
Maps Explorer Maps Explorer show-map, get-place-details, add-markers Open URL mcp-use/mcp-maps-explorer Deploy to mcp-use
Hugging Face Spaces Hugging Face Spaces search-spaces, show-space, trending-spaces Open URL mcp-use/mcp-huggingface-spaces Deploy to mcp-use
Recipe Finder Recipe Finder search-recipes, get-recipe, meal-plan, recipe-suggestion Open URL mcp-use/mcp-recipe-finder Deploy to mcp-use
Widget Gallery Widget Gallery show-react-widget, html-greeting, mcp-ui-poll, programmatic-counter, detect-client Open URL mcp-use/mcp-widget-gallery Deploy to mcp-use
Multi Server Hub Multi Server Hub hub-status, hub-config-example, audit-log Open URL mcp-use/mcp-multi-server-hub Deploy to mcp-use
File Manager File Manager open-vault, get-file, list-files Open URL mcp-use/mcp-file-manager Deploy to mcp-use
Progress Demo Progress Demo process-data, fetch-report, delete-dataset, search-external, failing-tool Open URL mcp-use/mcp-progress-demo Deploy to mcp-use
i18n Adaptive i18n Adaptive show-context, detect-caller Open URL mcp-use/mcp-i18n-adaptive Deploy to mcp-use
Media Mixer Media Mixer generate-image, generate-audio, generate-pdf, get-report, get-html-snippet, get-xml-config, get-stylesheet, get-script, get-data-array Open URL mcp-use/mcp-media-mixer Deploy to mcp-use
Resource Watcher Resource Watcher show-config, update-config, toggle-feature, list-roots Open URL mcp-use/mcp-resource-watcher Deploy to mcp-use

Python

pip install mcp-use

```python from typing import Annotated

from mcp.types import ToolAnnotations from pydantic import Field

from mcp_use import MCPServer

server = MCPServer(name="Weather Server", version="1.0.0")

@server.tool( name="get_weather", description="Get current weather information for a location", annotations=ToolAnnotations(readOnlyHint=True, openWorldHint=True), ) async def get_weather( city:

Extension points exported contracts — how you extend this code

KVStore (Interface)
(no doc) [6 implementers]
libraries/typescript/packages/mcp-use/src/auth/kv-store.ts
SessionStore (Interface)
(no doc) [6 implementers]
libraries/typescript/packages/mcp-use/src/server/sessions/stores/index.ts
OAuthProvider (Interface)
(no doc) [8 implementers]
libraries/typescript/packages/mcp-use/src/server/oauth/providers/types.ts
BaseTelemetryEvent (Interface)
(no doc) [16 implementers]
libraries/typescript/packages/inspector/src/client/telemetry/events.ts
StorageProvider (Interface)
(no doc) [4 implementers]
libraries/typescript/packages/mcp-use/src/react/storage/StorageProvider.ts

Core symbols most depended-on inside this repo

log
called by 1429
libraries/python/mcp_use/server/context.py
error
called by 595
libraries/typescript/packages/mcp-use/src/logging.ts
get
called by 479
libraries/typescript/packages/mcp-use/src/auth/kv-store.ts
debug
called by 335
libraries/typescript/packages/mcp-use/src/logging.ts
debug
called by 296
libraries/python/mcp_use/server/server.py
info
called by 287
libraries/typescript/packages/mcp-use/src/server/types/context.ts
warn
called by 274
libraries/typescript/packages/mcp-use/src/logging.ts
set
called by 258
libraries/typescript/packages/mcp-use/src/auth/kv-store.ts

Shape

Function 2,238
Method 1,698
Class 606
Interface 497
Route 34

Languages

TypeScript70%
Python30%

Modules by API surface

libraries/typescript/packages/mcp-use/src/telemetry/events.ts74 symbols
libraries/typescript/packages/inspector/src/client/telemetry/events.ts65 symbols
libraries/typescript/packages/cli/src/utils/api.ts65 symbols
libraries/typescript/packages/mcp-use/src/telemetry/telemetry-node.ts44 symbols
libraries/typescript/packages/mcp-use/src/telemetry/telemetry-browser.ts41 symbols
libraries/python/tests/unit/server/middleware/test_initialize_middleware.py41 symbols
libraries/typescript/packages/mcp-use/src/agents/mcp_agent.ts40 symbols
libraries/typescript/packages/mcp-use/src/utils/json-schema-to-zod/JSONSchemaToZod.ts37 symbols
libraries/typescript/packages/mcp-use/src/react/mcp-apps-bridge.ts37 symbols
libraries/typescript/packages/mcp-use/src/auth/node-provider.ts37 symbols
libraries/typescript/packages/mcp-use/src/connectors/base.ts34 symbols
libraries/typescript/packages/cli/src/shims/next-shims-noop.cjs34 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@better-auth/oauth-providerlatest · 1×
@changesets/cli2.30.0 · 1×
@eslint/js9.39.4 · 1×
@hono/node-server1.19.13 · 1×
@langchain/openai1.2.8 · 1×
@mcp-ui/server6.1.0 · 1×
@mcp-use/cliworkspace:* · 1×
@mcp-use/inspectorworkspace:* · 1×
@modelcontextprotocol/ext-apps1.0.1 · 1×
@modelcontextprotocol/sdk1.26.0 · 1×
@openai/apps-sdk-ui0.2.1 · 1×
@paper-design/shaders-react0.0.72 · 1×

Datastores touched

myappDatabase · 1 repos

For agents

$ claude mcp add mcp-use \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact