MCPHub LabRegistrymcp-use/mcp-use
mcp-use

mcp use/mcp use

Built by mcp-use 9,536 stars

What is mcp use/mcp use?

The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.

How to use mcp use/mcp use?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add mcp use/mcp use using the following command: npx @modelcontextprotocol/mcp-use-mcp-use 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/mcp-use-mcp-use --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/mcp-use-mcp-use

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

mcp use/mcp use FAQ

Q

Is mcp use/mcp use safe?

Yes, mcp use/mcp use follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is mcp use/mcp use up to date?

mcp use/mcp use is currently active in the registry with 9,536 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for mcp use/mcp use?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<div align="center"> <div align="center"> <a href="https://mcp-use.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset="./static/logo_white.svg"> <source media="(prefers-color-scheme: light)" srcset="./static/logo_black.svg"> <img alt="mcp use logo" src="./static/logo_black.svg" width="60%" > </picture> </a> </div> &nbsp; <p align="center"> <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> <br/> <a href="https://mcp-use.com/docs/python" alt="Python docs"> <img src="https://img.shields.io/badge/pyhton-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> <br/> <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> <br/> </p> </div>

About

<b>mcp-use</b> 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

<img src="./static/typescript.svg" height="14" style="margin-right:4px; top:-1px; position:relative;" align="center" /> 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 <div>Loading...</div>;

  return (
    <div style={{
      background: isDark ? "#1a1a2e" : "#f0f4ff",
      borderRadius: 16, padding: 24,
    }}>
      <h2>{props.city}</h2>
      <p>{props.temperature}° — {props.conditions}</p>
    </div>
  );
};

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.

PreviewNameToolsDemo URLRepoDeploy
Chart BuilderChart Buildercreate-chartOpen URLmcp-use/mcp-chart-builderDeploy to mcp-use
Diagram BuilderDiagram Buildercreate-diagram, edit-diagramOpen URLmcp-use/mcp-diagram-builderDeploy to mcp-use
Slide DeckSlide Deckcreate-slides, edit-slideOpen URLmcp-use/mcp-slide-deckDeploy to mcp-use
Maps ExplorerMaps Explorershow-map, get-place-details, add-markersOpen URLmcp-use/mcp-maps-explorerDeploy to mcp-use
Hugging Face SpacesHugging Face Spacessearch-spaces, show-space, trending-spacesOpen URLmcp-use/mcp-huggingface-spacesDeploy to mcp-use
Recipe FinderRecipe Findersearch-recipes, get-recipe, meal-plan, recipe-suggestionOpen URLmcp-use/mcp-recipe-finderDeploy to mcp-use
Widget GalleryWidget Galleryshow-react-widget, html-greeting, mcp-ui-poll, programmatic-counter, detect-clientOpen URLmcp-use/mcp-widget-galleryDeploy to mcp-use
Multi Server HubMulti Server Hubhub-status, hub-config-example, audit-logOpen URLmcp-use/mcp-multi-server-hubDeploy to mcp-use
File ManagerFile Manageropen-vault, get-file, list-filesOpen URLmcp-use/mcp-file-managerDeploy to mcp-use
Progress DemoProgress Demoprocess-data, fetch-report, delete-dataset, search-external, failing-toolOpen URLmcp-use/mcp-progress-demoDeploy to mcp-use
i18n Adaptivei18n Adaptiveshow-context, detect-callerOpen URLmcp-use/mcp-i18n-adaptiveDeploy to mcp-use
Media MixerMedia Mixergenerate-image, generate-audio, generate-pdf, get-report, get-html-snippet, get-xml-config, get-stylesheet, get-script, get-data-arrayOpen URLmcp-use/mcp-media-mixerDeploy to mcp-use
Resource WatcherResource Watchershow-config, update-config, toggle-feature, list-rootsOpen URLmcp-use/mcp-resource-watcherDeploy to mcp-use

<img src="./static/python.svg" height="14" style="margin-right:4px; top:-1px; position:relative;" align="center" /> Python

pip install mcp-use
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: Annotated[str, Field(description="City name")],
) -> str:
    return f"Temperature: 72°F, Condition: sunny, City: {city}"

# Start server with auto-inspector
server.run(transport="streamable-http", port=8000)
# 🎉 Inspector at http://localhost:8000/inspector

→ Full Python Server Documentation


Inspector

The mcp-use Inspector lets you test and debug your MCP servers interactively.

Auto-included when using server.listen():

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

Online when connecting to hosted MCP servers: <br>

Visit https://inspector.mcp-use.com

Standalone: inspect any MCP server:

npx @mcp-use/inspector --url http://localhost:3000/mcp

Visit Inspector Documentation


Deploy

Deploy your MCP server to production:

npx @mcp-use/cli login
npx @mcp-use/cli deploy

Or connect your GitHub repo on manufact.com — production-ready with observability, metrics, logs, and branch-deployments.


Package Overview

This monorepo contains multiple packages for both Python and TypeScript:

Python Packages

PackageDescriptionVersion
mcp-useComplete MCP server and MCP agent SDKPyPI

TypeScript Packages

PackageDescriptionVersion
mcp-useCore framework for MCP servers, MCP apps, and MCP agentsnpm
@mcp-use/cliBuild tool with hot reload and auto-inspectornpm
@mcp-use/inspectorWeb-based previewer and debugger for MCP serversnpm
create-mcp-use-appProject scaffolding toolnpm

Also: MCP Agent & Client

mcp-use also provides a full MCP Agent and Client implementation.

<details> <summary>Build an AI Agent</summary>

<img src="./static/python.svg" height="14" style="margin-right:4px; top:-1px; position:relative;" align="center" /> Python

pip install mcp-use langchain-openai
import asyncio
from langchain_openai import ChatOpenAI
from mcp_use import MCPAgent, MCPClient

async def main():
    config = {
        "mcpServers": {
            "filesystem": {
                "command": "npx",
                "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
            }
        }
    }

    client = MCPClient.from_dict(config)
    llm = ChatOpenAI(model="gpt-4o")
    agent = MCPAgent(llm=llm, client=client)

    result = await agent.run("List all files in the directory")
    print(result)

asyncio.run(main())

→ Full Python Agent Documentation

<img src="./static/typescript.svg" height="14" style="margin-right:4px; top:-1px; position:relative;" align="center" /> TypeScript

npm install mcp-use @langchain/openai
import { ChatOpenAI } from "@langchain/openai";
import { MCPAgent, MCPClient } from "mcp-use";

async function main() {
  const config = {
    mcpServers: {
      filesystem: {
        command: "npx",
        args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
      },
    },
  };

  const client = MCPClient.fromDict(config);
  const llm = new ChatOpenAI({ modelName: "gpt-4o" });
  const agent = new MCPAgent({ llm, client });

  const result = await agent.run("List all files in the directory");
  console.log(result);
}

main();

→ Full TypeScript Agent Documentation

</details> <details> <summary>Use MCP Client</summary>

<img src="./static/python.svg" height="14" style="margin-right:4px; top:-1px; position:relative;" align="center" /> Python

import asyncio
from mcp_use import MCPClient

async def main():
    config = {
        "mcpServers": {
            "calculator": {
                "command": "npx",
                "args": ["-y", "@modelcontextprotocol/server-everything"]
            }
        }
    }

    client = MCPClient.from_dict(config)
    await client.create_all_sessions()

    session = client.get_session("calculator")
    result = await session.call_tool(name="add", arguments={"a": 5, "b": 3})

    print(f"Result: {result.content[0].text}")
    await client.close_all_sessions()

asyncio.run(main())

→ Python Client Documentation

<img src="./static/typescript.svg" height="14" style="margin-right:4px; top:-1px; position:relative;" align="center" /> TypeScript

import { MCPClient } from "mcp-use";

async function main() {
  const config = {
    mcpServers: {
      calculator: {
        command: "npx",
        args: ["-y", "@modelcontextprotocol/server-everything"],
      },
    },
  };

  const client = new MCPClient(config);
  await client.createAllSessions();

  const session = client.getSession("calculator");
  const result = await session.callTool("add", { a: 5, b: 3 });

  console.log(`Result: ${result.content[0].text}`);
  await client.closeAllSessions();
}

main();

→ TypeScript Client Documentation

</details>

Conformance to Model Context Protocol

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

Community & Support


Star History

Star History Chart


Contributors

Thanks to all our amazing contributors!

Core Contributors

  1. Pietro (@pietrozullo)
  2. Luigi (@pederzh)
  3. Enrico (@tonxxd)
<br> <a href="https://github.com/mcp-use/mcp-use/graphs/contributors"> <img src="https://contrib.rocks/image?repo=mcp-use/mcp-use" /> </a>
<div align="center"> <strong>Built with ❤️ by Manufact team and the mcp-use community</strong> <br/> <sub>San Francisco | Zürich</sub> </div>

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

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