Communityコーディング&開発github.com

mcp-use/mcp-use

ChatGPT / Claude向けのMCPアプリとAIエージェント向けMCPサーバーを開発するフルスタックMCPフレームワーク。

mcp-use とは?

mcp-useは、AIエージェントとチャットプラットフォーム向けにModel Context Protocol (MCP) アプリケーションとサーバーを構築するためのフルスタックフレームワークです。ChatGPTやClaudeなどのアシスタントと統合するMCPアプリ、またはLangChainやAutoGPTなどのAIエージェントが利用するMCPサーバーの開発をサポートします。このフレームワークは、型安全な開発、ストリーミング対応、およびマルチプラットフォーム展開を可能にし、MCPの標準仕様に準拠したツール、リソース、プロンプトの定義を簡素化します。これにより、開発者は低レベルのプロトコル実装を気にせず、AIワークフローの構築に集中できます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add mcp-use/mcp-use

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

mcp-use は何をしますか?

ChatGPT / Claude向けのMCPアプリとAIエージェント向けMCPサーバーを開発するフルスタックMCPフレームワーク。

概要

mcp-useは、Model Context Protocol (MCP) を活用したアプリケーションとサーバーを開発するための包括的なフレームワークです。このフレームワークは、以下の2つの主要なユースケースをサポートします:

  1. MCP Apps: ChatGPTやClaudeなどのチャットプラットフォームと統合するアプリケーション
  2. MCP Servers: LangChain、AutoGPT、その他のAIエージェントが利用するサーバー

主な機能

  • フルスタック開発: クライアントとサーバーの両方を同一フレームワークで開発可能
  • 型安全: TypeScriptによる型安全なAPI定義
  • ストリーミング対応: リアルタイムデータストリーミングをサポート
  • マルチプラットフォーム: ChatGPT、Claude、カスタムAIエージェントに対応
  • 標準準拠: MCP仕様に完全準拠

クイックスタート

npm install mcp-use

使用方法

MCPサーバーの作成

import { MCPServer } from 'mcp-use';

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

server.tool('get_weather', {
  description: '現在の天気を取得します',
  parameters: {
    location: { type: 'string', description: '場所の名前' }
  },
  handler: async ({ location }) => {
    const weather = await fetchWeather(location);
    return { content: [{ type: 'text', text: `現在の${location}の天気: ${weather}` }] };
  }
});

server.start();

MCPアプリの作成

import { MCPApp } from 'mcp-use';

const app = new MCPApp({
  serverUrl: 'http://localhost:3000/mcp'
});

await app.connect();
const result = await app.callTool('get_weather', { location: '東京' });
console.log(result);

ドキュメント

完全なドキュメントはこちらを参照してください。

ライセンス

MIT License

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

mcp-use/chatgpt-app-builder

**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pitfalls. Always consult the relevant reference files BEFORE implementing MCP features.

mcp-use/mcp-apps-builder

**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pitfalls. Always consult the relevant reference files BEFORE implementing MCP features.

mcp-use/mcp-builder

**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pitfalls. Always consult the relevant reference files BEFORE implementing MCP features.

関連スキル