MCP ExplorerExplorer

Dotnet Mcp Study3

@Tobotoboon a year ago
1 MIT
FreeCommunity
AI Systems
A C# MCP server for generating PDFs, callable from Dify.

Overview

What is Dotnet Mcp Study3

dotnet_mcp_study3 is a C# based MCP server designed to generate PDFs from specified information, which can be invoked from Dify.

Use cases

Use cases include generating automated reports, creating invoices, and producing documentation that requires PDF formatting.

How to use

To use dotnet_mcp_study3, create a new web API project using the provided commands, add the necessary packages, and run the project using ‘dotnet run --project MCPServerLab’.

Key features

Key features include the ability to generate PDFs using PDFsharp, integration with Microsoft.SemanticKernel and Gemini, and support for Dify and MCP SSE.

Where to use

dotnet_mcp_study3 can be used in various fields such as document generation, report automation, and applications requiring PDF outputs.

Content

dotnet_mcp_study3

概要

  • 指定した情報で PDF を生成する MCP サーバーを C# で作成し、Dify から呼び出してみる

alt text

alt text

詳細

細かい実装方法は以下のリポジトリを参照

dotnet_mcp_study2
https://github.com/Tobotobo/dotnet_mcp_study2

  • Kazuki Ota さんの「.NET で MCP サーバー・クライアントを試してみよう」の記事を 2025/5/6 時点のバージョンで再実装してみる
  • 作成した MCP サーバーを Microsoft.SemanticKernel + Gemini から呼び出してみる
  • 作成した MCP サーバーを Dify + MCP SSE から呼び出してみる

dotnet_pdfsharp_example1
https://github.com/Tobotobo/dotnet_pdfsharp_example1

  • PDFsharp を使って PDF を作成してみるサンプル

プロジェクト作成

dotnet new webapi --no-https --no-openapi -n MCPServerLab
dotnet add MCPServerLab package ModelContextProtocol.AspNetCore --prerelease
dotnet add MCPServerLab package PDFsharp --version 6.2.0-preview-3

実行

dotnet run --project MCPServerLab

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers