MCP.so
ログイン

tRPC <-> MCP

@Jacse

tRPC <-> MCP について

Serve tRPC routes as an MCP server

基本情報

カテゴリ

その他

ライセンス

MIT

ランタイム

node

トランスポート

stdio

公開者

Jacse

設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is tRPC <-> MCP?

tRPC <-> MCP is a library that allows you to serve tRPC routes via the Model Context Protocol (MCP). It is designed for developers who want to expose their tRPC procedures as MCP tools using a standard transport like stdio.

How to use tRPC <-> MCP?

First, add McpMeta to your tRPC initialization and enable openapi meta on each procedure. Then use createMcpServer from the trpc-mcp package to build an MCP server, passing your app router. Finally, connect the server to a transport (e.g., StdioServerTransport) and start listening.

Key features of tRPC <-> MCP

  • Integrates tRPC routes with the Model Context Protocol
  • Uses openapi meta for route metadata and documentation
  • Supports stdio transport via StdioServerTransport
  • Lightweight setup with minimal code changes
  • Works with existing tRPC v11+ routers

Use cases of tRPC <-> MCP

  • Expose tRPC query procedures as MCP tools for AI agents
  • Bridge tRPC backends with MCP clients using standard transport
  • Create a simple MCP server from an existing tRPC application

FAQ from tRPC <-> MCP

コメント

「その他」の他のコンテンツ