rfc-mcp
rfc-mcp
SAP の RFC 対応ファンクションモジュール(BAPI/RFC)を、ディスカバリファーストのインターフェースを通じて AI エージェントに公開する MCP サーバーです。SAP の pyrfc コネクタ上に構築されており、さらに ABAP ソースの自動読み取り(ADT が到達可能な場合は ADT、それ以外は透過的な RFC フォールバック)も行います。詳細は docs/adt_rfc_integration_plan.md を参照してください。
セットアップ
実際の SAP 呼び出しが機能するために必要な前提条件(SAP NW RFC SDK + Python 3.11)については docs/setup.md を、レイヤー概要(読み取り/書き込みポリシーモデル、汎用テーブルリーダーガード、監査ログを含む)については docs/architecture.md を参照してください。
前提条件がインストールされた後のクイックスタート:
uv sync --extra dev
copy .env.example .env # fill in connection + policy settings
uv run pytest # unit tests, fake pyrfc, no SAP needed
uv run mcp dev src/rfc_mcp/mcp/server.py実際の SAP 接続には、さらにプロプライエタリな SAP NW RFC SDK と、アーカイブ/削除された pyrfc==3.3.1 コネクタが必要です。uv sync --extra sap またはスモークテストを実行する前に、docs/setup.md のサポート警告とインストール手順をお読みください。
Related MCP server: SAP RFC MCP Server
ツール
search_rfc_functions(pattern, group=None, limit=50)get_rfc_function_interface(function_name)call_rfc_function(function_name, parameters, mode="read"|"write", transaction_id=None)commit_rfc_transaction(transaction_id, wait=False)rollback_rfc_transaction(transaction_id)read_abap_source(object_type, object_name, function_group=None)— 単一のツールであり、呼び出し側にトランスポートの選択肢は公開されません。docs/architecture.md を参照してください。
ABAP ナレッジスキル
.claude/skills/sap-abap/ は、サードパーティの sap-abap Claude スキルを同梱しており、このサーバーを使用するエージェントは正確な ABAP 言語知識を手元に持つことができます。これはこのプロジェクトの他の部分とは別にライセンスされています(GPL-3.0、独自の LICENSE/NOTICE.md)— 以下を参照してください。
スコープ
基盤、接続レイヤー、ディスカバリ、実行、MCP 統合は構築・テスト済みです。これには、デフォルト拒否の読み取り/書き込みポリシー、汎用テーブルリーダーのインジェクション面(RFC_READ_TABLE など)に対するテーブルレベルのガード、およびすべてのポリシー決定と呼び出し結果の監査ログが含まれます。構築されていないもの: 単一のサーバー全体ポリシーを超えるマルチテナント認証/RBAC、レート制限、メトリクス/トレーシング、デプロイメントパッケージング — 意図的に延期されている内容とその理由については、docs/architecture.md の「Out of scope」セクションを参照してください。
書き込み呼び出しは不透明な transaction_id を返します。関連する書き込みにはそれを再利用し、コミットまたはロールバックに渡します。これにより、SAP LUW 全体が 1 つの RFC 接続に固定されます。放棄されたトランザクションは期限切れになり、自動的にロールバックされます。
セキュリティ体制
読み取りと書き込みは、そのファンクション名が明示的な許可リストに一致しない限り拒否されます。サンプル構成では、ディスカバリ、ソース読み取り、および無害な
STFC_CONNECTIONスモークテストのみが許可されています。MCP ツールの注釈は、対応するクライアントに対して読み取り/書き込みのリスクを説明しますが、これらは参考メタデータであり、認可境界ではありません。サーバーポリシーと SAP サービスアカウントの
S_RFC/テーブル認可は引き続き必須です。Stdio の資格情報は環境から取得され、MCP ツールの引数に配置されることはありません。MCP 認可仕様とデプロイメントレベルのレート制限を実装せずに、サーバーを HTTP 経由で公開しないでください。
報告とデプロイメントのガイダンスについては SECURITY.md を参照してください。
ライセンス
MIT(LICENSE を参照)ですが、1 つの例外があります。.claude/skills/sap-abap/ は GPL-3.0 の下でベンダー提供されるサードパーティコンテンツです — 独自の LICENSE と NOTICE.md を参照してください。そのディレクトリを含めても、プロジェクトの他の部分が GPL-3.0 になるわけではありません。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to integrate with SAP systems via OData REST APIs for querying entity sets, performing CRUD operations, and executing function imports. It features automatic service discovery, CSRF token management, and smart connection handling without requiring the SAP RFC SDK.1112
- AlicenseNot gradedqualityNot gradedmaintenanceAn enterprise-grade MCP server that enables AI agents to execute SAP RFC functions and read business data securely through the Model Context Protocol.
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to securely connect with SAP ABAP and BTP services, allowing execution of function modules, BAPIs, table reads, and various BTP operations through MCP.1Apache 2.0
- FlicenseAqualityCmaintenanceEnables AI agents to read, write, activate, and transport ABAP code in SAP systems via ABAP ADT REST API, without needing SAP GUI.424
Related MCP Connectors
See, price, and control every tool call your AI agents make: policy checks, cost, and audit tools.
SaaS intelligence for AI agents. 5 unified tools cover 1,000+ services with 91-96% token savings.
Runtime permission, approval, and audit layer for AI agent tool execution.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yassinbahri/pyrfc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server