Discover Awesome MCP Servers

Extend your agent with 72,663 capabilities via MCP servers.

All72,663
Comedy MCP Server

Comedy MCP Server

承知いたしました。以下に、C# SDK を使用して MCP (Minecraft Protocol) サーバーを構築し、JokeAPI からジョークを取得してコメントを面白くする例を示します。 ```csharp using System; using System.Threading.Tasks; using MinecraftProtocol.Compatible; using MinecraftProtocol.DataType; using MinecraftProtocol.IO; using MinecraftProtocol.Networking; using Newtonsoft.Json; using System.Net.Http; namespace MCPJokeServer { class Program { // JokeAPI からジョークを取得するためのクラス public class Joke { public bool error { get; set; } public string category { get; set; } public string type { get; set; } public string setup { get; set; } public string delivery { get; set; } public string joke { get; set; } public Flags flags { get; set; } public bool safe { get; set; } public int id { get; set; } public string lang { get; set; } } public class Flags { public bool nsfw { get; set; } public bool religious { get; set; } public bool political { get; set; } public bool racist { get; set; } public bool sexist { get; set; } public bool explicit { get; set; } } // JokeAPI からジョークを取得する非同期メソッド static async Task<string> GetJokeAsync() { using (HttpClient client = new HttpClient()) { try { HttpResponseMessage response = await client.GetAsync("https://v2.jokeapi.dev/joke/Programming,Christmas?blacklistFlags=nsfw,racist,sexist,explicit&safe-mode"); response.EnsureSuccessStatusCode(); // エラーレスポンスをチェック string responseBody = await response.Content.ReadAsStringAsync(); Joke joke = JsonConvert.DeserializeObject<Joke>(responseBody); if (joke.type == "single") { return joke.joke; } else { return joke.setup + " " + joke.delivery; } } catch (HttpRequestException e) { Console.WriteLine($"Exception: {e.Message}"); return "ジョークの取得に失敗しました。"; } } } static async Task Main(string[] args) { // サーバー設定 string ip = "127.0.0.1"; int port = 25565; // サーバーインスタンスを作成 CompatibleServer server = new CompatibleServer(ip, (ushort)port); // クライアント接続時のイベントハンドラ server.ClientConnected += async (sender, client) => { Console.WriteLine($"クライアントが接続しました: {client.EndPoint}"); // ログイン時のイベントハンドラ client.LoginIn += async (s, login) => { Console.WriteLine($"クライアントがログインしました: {login.Username}"); // ジョークを取得 string joke = await GetJokeAsync(); // チャットメッセージを送信 (ジョーク付き) ChatMessage message = new ChatMessage($"ようこそ {login.Username} さん! {joke}"); client.SendPacket(message); // プレイヤーをワールドに参加させる (サンプル) client.SendPacket(new JoinGame(0, GameMode.Creative, 0, 1, "default")); client.SendPacket(new PlayerPositionAndLook(0, 5, 0, 0, 0, 0)); }; // 切断時のイベントハンドラ client.Disconnected += (s, e) => { Console.WriteLine($"クライアントが切断しました: {client.EndPoint}"); }; }; // サーバーを開始 server.Start(); Console.WriteLine($"サーバーが起動しました: {ip}:{port}"); // 終了を待機 Console.ReadKey(); // サーバーを停止 server.Stop(); Console.WriteLine("サーバーを停止しました。"); } } } ``` **コードの説明:** 1. **必要なライブラリのインポート:** * `MinecraftProtocol.Compatible`: Minecraft プロトコルを扱うためのライブラリ。 * `MinecraftProtocol.DataType`: Minecraft のデータ型を扱うためのライブラリ。 * `MinecraftProtocol.IO`: 入出力処理のためのライブラリ。 * `MinecraftProtocol.Networking`: ネットワーク処理のためのライブラリ。 * `Newtonsoft.Json`: JSON データのシリアライズ/デシリアライズのためのライブラリ。 * `System.Net.Http`: HTTP リクエストを送信するためのライブラリ。 2. **Joke クラス:** * JokeAPI から返される JSON データを格納するためのクラス。 * `error`, `category`, `type`, `setup`, `delivery`, `joke`, `flags`, `safe`, `id`, `lang` プロパティを持つ。 * `Flags` クラスは、ジョークのフラグ情報を格納する。 3. **GetJokeAsync メソッド:** * JokeAPI からジョークを非同期で取得するメソッド。 * `HttpClient` を使用して HTTP リクエストを送信。 * JSON データを `Joke` クラスにデシリアライズ。 * ジョークのタイプに応じて、`setup` と `delivery` を結合するか、`joke` をそのまま返す。 * エラーが発生した場合は、エラーメッセージを返す。 4. **Main メソッド:** * サーバーの設定 (IP アドレス、ポート番号) を定義。 * `CompatibleServer` インスタンスを作成。 * `ClientConnected` イベントハンドラ: * クライアントが接続されたときに実行される。 * `LoginIn` イベントハンドラ: * クライアントがログインしたときに実行される。 * `GetJokeAsync` メソッドを呼び出してジョークを取得。 * `ChatMessage` パケットを送信して、ジョーク付きのウェルカムメッセージを送信。 * `JoinGame` パケットと `PlayerPositionAndLook` パケットを送信して、プレイヤーをワールドに参加させる (サンプル)。 * `Disconnected` イベントハンドラ: * クライアントが切断されたときに実行される。 * `server.Start()` を呼び出してサーバーを起動。 * キー入力を待機して、サーバーを停止。 * `server.Stop()` を呼び出してサーバーを停止。 **必要なもの:** * .NET SDK (6.0 以降) * MinecraftProtocol ライブラリ (NuGet パッケージマネージャーでインストール) * Newtonsoft.Json ライブラリ (NuGet パッケージマネージャーでインストール) **使い方:** 1. 上記のコードを C# プロジェクトにコピーします。 2. NuGet パッケージマネージャーを使用して、`MinecraftProtocol` と `Newtonsoft.Json` ライブラリをインストールします。 3. プロジェクトをビルドして実行します。 4. Minecraft クライアントを起動し、`127.0.0.1:25565` に接続します。 **注意点:** * このコードはあくまでサンプルであり、完全な Minecraft サーバーではありません。 * JokeAPI は、ジョークの内容を保証していません。不適切なジョークが含まれる可能性もあります。 * エラー処理は最小限に抑えられています。本番環境で使用する場合は、より堅牢なエラー処理を追加してください。 * MinecraftProtocol ライブラリのバージョンによっては、コードの修正が必要になる場合があります。 * JokeAPI の利用規約を遵守してください。 **改善点:** * ジョークのカテゴリをカスタマイズできるようにする。 * ジョークのブラックリスト機能を実装する。 * より高度なチャットコマンドを実装する。 * より堅牢なエラー処理を追加する。 * 設定ファイルを導入して、IP アドレス、ポート番号、ジョークのカテゴリなどを設定できるようにする。 このコードが、あなたのプロジェクトの助けになることを願っています。

real-estate-analyzer

real-estate-analyzer

Analyzes real estate locations using Kakao Local API, providing insights on education, transportation, convenience, nature, and future value.

rapid7-mcp-server

rapid7-mcp-server

Enables querying Rapid7 InsightIDR logs using natural language through AI assistants, with support for time filtering, logset selection, and LEQL queries.

stacksfinder-mcp

stacksfinder-mcp

Tech stack recommendations for developers. Deterministic 6-dimension scoring across 30+ technologies. 4 free tools, Pro features with API key.

Mergen

Mergen

AI-Powered Red Team MCP Server enabling autonomous penetration testing via Model Context Protocol with 44+ security tools for AI agents.

SITUROOM MCP Server

SITUROOM MCP Server

Enables agents to fetch real-time earthquake, natural events, conflict headlines, market data, and tension index from free public sources via tools like get_quakes, get_events, get_headlines, get_tension, get_markets.

Overture

Overture

Provides interactive visual plans for AI coding agents, allowing users to review, approve, and monitor execution in real-time.

HDFS MCP Server by CData

HDFS MCP Server by CData

HDFS MCP Server by CData

Data Platform MCP

Data Platform MCP

Bootstrap MCP server for future data exploration and querying across multiple databases, currently only provides a hello_world tool with no actual data connectivity.

Microsoft Planner MCP Server

Microsoft Planner MCP Server

An unofficial MCP server that connects AI assistants to Microsoft Planner, enabling natural language task management such as creating tasks, organizing plans, and managing buckets.

Naver Search Ad MCP

Naver Search Ad MCP

An MCP server for the Naver Search Ad API that enables querying campaigns, ad groups, keywords, stats, keyword research, and bid estimates through any MCP client.

app.wishpool/latvia-payments-mcp

app.wishpool/latvia-payments-mcp

A remote MCP server that lets AI agents accept payments in Latvia via Stripe hosted checkout, supporting cards and digital wallets.

sharepoint-mcp

sharepoint-mcp

Enables reading and searching Microsoft SharePoint content via the Graph API, including sites, document libraries, folders, and files. Also provides admin tools for configuration and token management.

HaloPSA MCP Server

HaloPSA MCP Server

Enables AI assistants to interact with HaloPSA data through secure OAuth2 authentication. Supports SQL queries against the HaloPSA database, API endpoint exploration, and direct API calls for comprehensive PSA data analysis and management.

Concept-4 Compliance Engine

Concept-4 Compliance Engine

Autonomous M2M compliance and trust APIs for AI agents (KYB, OFAC, VAT, Sanctions checking).

steam-local-mcp

steam-local-mcp

Let your agent control your steam client. e.g. "pick a strategy game from my library and launch it"

Picus Security MCP Server

Picus Security MCP Server

Enables interaction with Picus Security's Breach & Attack Simulation API, allowing natural language queries for simulations, threat library searches, and agent management through MCP-compatible clients.

overtooled-mcp

overtooled-mcp

MCP server for local file conversion, analysis, and image processing across 44 formats with 7 tools, all processed locally.

agentranking

agentranking

Discover and rank ERC-8004 AI agents by archetype, chain, trust score, and verified on-chain performance. Free search tools + paid analytics via x402 micropayments.

Agent MCP

Agent MCP

A Multi-Agent Collaboration Protocol server that enables coordinated AI collaboration through task management, context sharing, and agent interaction visualization.

MCP Weather Server

MCP Weather Server

A containerized server that provides weather tools for AI assistants, allowing them to access US weather alerts and forecasts through the National Weather Service API.

Unloop MCP

Unloop MCP

Detects and breaks repetitive fix loops in AI coding assistants by tracking attempts and providing escalating intervention strategies. It utilizes error fingerprinting and similarity analysis to redirect the AI toward new approaches when it gets stuck on the same error.

Polymarket MCP Server

Polymarket MCP Server

Enable Claude to autonomously trade, analyze, and manage positions on Polymarket with 45 comprehensive tools, real-time WebSocket monitoring, and enterprise-grade safety features.

zju-mcp

zju-mcp

Enables interaction with Zhejiang University's learning platform (学在浙大 / 智云课堂) via MCP tools, allowing natural language commands to check todos, view schedules, fetch lecture transcripts, and submit homework.

paprika-mcp

paprika-mcp

An MCP server that provides read-only access to the Paprika Recipe Manager, allowing users to list and retrieve recipes, grocery items, and meal plans. It enables seamless interaction with recipe details and category information through the Paprika API.

random-number-server

random-number-server

An MCP server that generates random numbers by using national weather data as entropy seeds. It provides a unique way to generate random values through weather API integration within the Model Context Protocol.

TypeScript MCP Server Boilerplate

TypeScript MCP Server Boilerplate

A boilerplate project for quickly developing Model Context Protocol (MCP) servers using TypeScript SDK, with examples of tools (calculator, greeting) and resources (server info).

mysql-mcp

mysql-mcp

A lightweight MCP server providing safe, read-only access to MySQL databases. It enables users to query multiple MySQL instances securely while preventing write operations.

SuperCollider MCP Server

SuperCollider MCP Server

Model Context Protocol (MCP) server for SuperCollider integration with Claude Code and other MCP clients.

mcp-comfy-ui-builder

mcp-comfy-ui-builder

Enables discovery of ComfyUI nodes and building/managing workflows with real-time execution via WebSocket. Provides 50+ tools for node discovery, workflow building, template usage, model management, and batch/chain execution.