Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsApr 1, 2026·2 min de lecture

MCP-Use — Build Full-Stack MCP Apps

MCP-Use is a full-stack framework for building MCP apps that work with ChatGPT, Claude, and any AI agent. 9.6K+ stars. Python SDK. MIT.

MCP Hub
MCP Hub · Community
Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 17/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Mcp Config
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
mcp-use.py
Commande de staging sûr
npx -y tokrepo@latest install 0edfad7e-d0f4-4be8-87a0-280c8e3e1129 --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

TL;DR
MCP-Use is a Python framework for building MCP apps compatible with ChatGPT, Claude, and other agents.
§01

What it is

MCP-Use is a full-stack Python framework for building Model Context Protocol (MCP) applications. It provides the SDK, server runtime, and client libraries needed to create MCP servers and applications that work with ChatGPT, Claude, and any MCP-compatible AI agent. MCP-Use handles protocol compliance, tool registration, and message routing.

MCP-Use is for AI developers who want to build MCP servers or full-stack MCP applications without dealing with low-level protocol details.

The project is actively maintained with regular releases and a growing user community. Documentation covers common use cases, and the open-source nature means you can inspect the source code, contribute fixes, and adapt the tool to your specific requirements.

§02

How it saves time or tokens

Implementing the MCP specification from scratch requires handling JSON-RPC transport, tool schema registration, SSE streaming, and authentication. MCP-Use provides all of this as a Python SDK. You define your tools as decorated functions and MCP-Use handles the protocol layer, reducing development time from days to hours.

§03

How to use

  1. Install MCP-Use via pip or uv.
  2. Define your MCP tools as Python functions with the @tool decorator.
  3. Run the MCP server and connect it to your AI agent.
§04

Example

from mcp_use import MCPServer, tool

server = MCPServer(name='my-tools')

@server.tool
def search_database(query: str) -> str:
    '''Search the internal database for matching records.'''
    results = db.search(query)
    return f'Found {len(results)} results: {results[:5]}'

@server.tool
def create_ticket(title: str, description: str) -> str:
    '''Create a support ticket in the issue tracker.'''
    ticket = tracker.create(title=title, description=description)
    return f'Created ticket #{ticket.id}'

if __name__ == '__main__':
    server.run()
§05

Related on TokRepo

§06

Common pitfalls

  • MCP tool descriptions are sent as part of the prompt to the AI model. Vague descriptions lead to incorrect tool calls. Write precise, specific descriptions for each tool.
  • MCP-Use servers run as long-lived processes. If your tools make external API calls, implement proper error handling and timeouts to prevent the server from hanging.
  • The MCP protocol version matters. Ensure your MCP-Use version matches the protocol version expected by your AI agent client.

Before adopting this tool, evaluate whether it fits your team's existing workflow. Read the official documentation thoroughly, and start with a small proof-of-concept rather than a full migration. Community forums, GitHub issues, and Stack Overflow are valuable resources when you encounter edge cases not covered in the documentation.

Questions fréquentes

What AI agents work with MCP-Use?+

MCP-Use creates MCP-compliant servers that work with any MCP-compatible client, including Claude Desktop, ChatGPT plugins, Cursor, and custom agents built with the MCP client SDK.

How is MCP-Use different from the official MCP SDK?+

MCP-Use provides higher-level abstractions for building full-stack applications, including server management, tool composition, and client utilities. The official MCP SDK provides lower-level protocol primitives.

Can I deploy MCP-Use servers to production?+

Yes. MCP-Use servers can be deployed as standalone processes, Docker containers, or behind a reverse proxy. For production use, configure proper authentication and rate limiting.

Does MCP-Use support streaming responses?+

Yes. MCP-Use supports Server-Sent Events (SSE) for streaming tool responses back to the client. This is useful for long-running tools that produce incremental output.

Is MCP-Use open source?+

Yes. MCP-Use is open source under the MIT license. The full SDK, server runtime, and examples are available on GitHub.

Sources citées (3)

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires