AF

appliedrelevance/frappe-mcp-server

Deployment & DevOps

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

17 stars 12 forks 品質 31 トレンド 21

高度なフィルタリング、包括的な API のカバレッジ、MCP JSON 検証の制限を回避するカスタムフィルタ言語で Frappe MCP サーバーの Python 実装

概要

Frappe Framework 用のモデルコンテキストプロトコル (MCP) サーバのモダンでコンテナ化された Python の実装で、FastMCP、依存関係管理のための uv、デプロイメント用の Docker が組み込まれています。 - : Frappe文書のフルCRUD操作 - : DocTypeフィールド定義と構造解析 - : クエリレポート、財務ステートメント、データエクスポート - : ホワイトリストされたFrappeメソッドを実行 - : セキュアAPIキー/シークレット認証 - DockerとDocker Compose - APIの資格情報を持つFrappeサイトへのアクセス - create document: 新しいFrappe文書を作成する - get document: ドキュメントをDocTypeと名前で取得する - update document: 既存の文書を更新する - delete document: ドキュメントの削除 - List documents: ドキュメントをフィルタで問い合わせる - call method: リストされたFrappeメソッドを実行 - get doctype schema: 完全な DocType 構造を取得する - get field options: リンク/選択フィールドオプションを取得する - get doctype list: 利用可能な DocTypes - get frappe usage info: スキーマと使用情報の組み合わせ -...

概要(AI 翻訳)

Frappe Framework 用のモデルコンテキストプロトコル (MCP) サーバのモダンでコンテナ化された Python の実装で、FastMCP、依存関係管理のための uv、デプロイメント用の Docker が組み込まれています。

##特徴

  • 文書の操作: 折り返し文書のための完全なCRUD操作 -Schema Introspection:DocTypeフィールド定義と構造解析 -レポート生成:クエリレポート、財務ステートメント、およびデータエクスポート
  • 方法呼ぶ:ホワイトリストされた折り返し方法を実行して下さい
  • 認証: セキュアなAPIキー/シークレット認証

クイックスタート

前提条件

  • ドッカーとドッカーコンポーズ
  • APIの資格情報を持つFrappeサイトへのアクセス

セットアップ

利用可能なMCPツール

ドキュメントオペレーション

  • [get_document]: ドキュメントを DocType と name で取得する
  • [update_document: 既存の文書の更新
  • [call_method]: Whitelisted Frappeメソッドを実行する

スキーマ操作

  • [get_doctype_schema]: 完全な DocType 構造を取得する
  • [get_field_options: リンク/フィールドオプションを選択
  • [get_doctype_list: 利用可能なDocTypesのリスト

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

README

Frappe MCP Server (Python + uv + Docker)

A modern, containerized Python implementation of the Model Context Protocol (MCP) server for Frappe Framework, built with FastMCP, uv for dependency management, and Docker for deployment.

Features

  • Document Operations: Full CRUD operations for Frappe documents
  • Schema Introspection: DocType field definitions and structure analysis
  • Report Generation: Query reports, financial statements, and data exports
  • Method Calling: Execute whitelisted Frappe methods
  • Authentication: Secure API key/secret authentication

Quick Start

Prerequisites

  • Docker and Docker Compose
  • Access to a Frappe site with API credentials

Setup

git clone https://github.com/appliedrelevance/frappe_mcp_server_uv.git
cd frappe_mcp_server_uv
cp .env.example .env
# Edit .env with your Frappe credentials
docker-compose up -d frappe-mcp-server

Available MCP Tools

Document Operations

  • create_document: Create new Frappe documents
  • get_document: Retrieve document by DocType and name
  • update_document: Update existing documents
  • delete_document: Delete documents
  • list_documents: Query documents with filters
  • call_method: Execute whitelisted Frappe methods

Schema Operations

  • get_doctype_schema: Get complete DocType structure
  • get_field_options: Get Link/Select field options
  • get_doctype_list: List available DocTypes
  • get_frappe_usage_info: Combined schema and usage information

Report Operations

  • run_query_report: Execute Frappe query reports
  • get_report_meta: Get report metadata and structure
  • list_reports: List available reports
  • run_doctype_report: Generate DocType-based reports
  • get_financial_statements: Access P&L, Balance Sheet, Cash Flow

Helper Operations

  • ping: Server health check
  • version: Get server version information
  • validate_auth: Check API credential status

Development

# Install with development dependencies
uv sync --dev

# Run tests
uv run pytest

# Format code
uv run black src/ && uv run isort src/

License

ISC License - see LICENSE file for details.

GitHub で README 全文を見る

インストール

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

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