AQ

alucek/quick-mcp-example

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

62 stars 22 forks 品質 34 トレンド 13

alucek/quick-mcp-example は [https://github.com/alucek/quick-mcp-example.] からインポートされた MCP サーバー候補です

概要

alucek/quick-mcp-example は [https://github.com/alucek/quick-mcp-example.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

モデル コンテキスト プロトコル、または MCP は、アプリケーションが LLM にコンテキストを提供する方法を標準化するオープン プロトコルです。 言い換えれば、LM ベースのアプリケーション用の統一されたフレームワークで、データソースに接続したり、コンテキストを取得したり、ツールを使用して標準のプロンプトを実行したりすることができます。

MCP エコシステムは、3 つの特定のコンポーネントを構成します。

  • MCP Servers ハンドル: ツールの可用性(どのような機能が利用可能であるかを説明します)、ツールの実行(要求されたときにそれらの機能を実行する)、静的コンテンツはリソース(参照できるデータを提供する)、プリセットプロンプト(一般的なタスクの標準化されたテンプレート)

-Clients は管理します: サーバー、LMM の統合への接続、コンポーネント間で渡るメッセージ

  • Hosts 提供: フロントエンドインターフェイス、MCP機能のサーフィン、全体的なエコシステムのための統合ポイント

このアーキテクチャは、相互運用性を維持しながら、異なるコンポーネントを独立して開発することができるモジュラーシステムを作成します。 これにより、ユーザーはさまざまなLM関連の機能のためにMCPサーバーを作り、さまざまなサポートされているアプリケーションをプラグインして再生することができます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Standardizing LLM Interaction with MCP Servers

Model Context Protocol, or MCP, is an open protocol that standardizes how applications provide context to LLMs. In other words it provides a unified framework for LLM based applications to connect to connect to data sources, get context, use tools, and execute standard prompts.

The MCP ecosystem outlines three specific components:

  • MCP Servers handle: tool availability (exposing what functions are available), tool execution (running those functions when requested), static content as resources (providing data that can be referenced), preset prompts (standardized templates for common tasks)

  • Clients manage: Connections to servers, LLM integration, message passing between components

  • Hosts provide: Frontend interfaces, surfacing of MCP functionality to users, integration points for the overall ecosystem

This architecture creates a modular system where different components can be developed independently while maintaining interoperability. This let’s users make MCP servers for different LLM related functionalities then plug and play across a variety of supported applications. Commonly used to integrate services APIs and tools, or connect to local datasources on your own machine.

MCP Server Components

MCP servers form the foundation of the protocol by exposing standardized capabilities through well-defined interfaces. Hosts and clients can then connect to these servers using the protocol standard, but how these capabilities are presented to users remains flexible and open to developers. That means that the actual implementation and user experience is entirely up to the developer - whether through command line interfaces, graphical applications, or embedded within larger systems.

In this guide, we’ll focus on building an example MCP server with core capabilities, along with a simple client implementation to demonstrate the interaction patterns. To start, let’s go over the main components of an MCP Server:

Tools

Tools are functions that the LLM can invoke to perform actions or retrieve information. Each tool is defined with:

{
  name: string;          // Unique identifier for the tool
  description?: string;  // Human-readable description
  inputSchema: {         // JSON Schema for the tool's parameters
    type: "object",
    properties: { ... }  // Tool-specific parameters
  }
}

Tools allow LLMs to interact with external systems, execute code, query databases, or perform calculations. They represent actions that have effects or compute new information.

Resources

Resources represent data sources that can be accessed by the client application. They are identified by URIs and can include:

{
  uri: string;           // Unique identifier for the resource
  name: string;          // Human-readable name
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →