Frappe Dev MCP Server logo

Frappe Dev MCP Server

MCP server for Frappe/ERPNext development with DocTypes, bench commands, and app management

Install Frappe Dev MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

Frappe Dev MCP Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install
    
  2. 2. Install
    npm run build
    
  3. 3. Start the server
    npm run sse
    
  4. 4. Start the server
    node dist/index.js
    

Overview

Tools15

What Frappe Dev MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~136 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/21 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
Last commit5mo agoMost recent push to the default branch.
Tools exposed15Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

Frappe/ERPNext MCP Server

A Model Context Protocol (MCP) server that provides AI assistance for Frappe/ERPNext development. This server offers tools to help with creating DocTypes, running bench commands, managing apps, and other Frappe development tasks.

Features

  • DocType Creation: Automatically generate DocType JSON definitions and Python controllers
  • Bench Commands: Execute bench commands for development workflows
  • App Management: Create, install, and manage Frappe apps
  • API Endpoints: Generate custom API endpoints
  • Database Operations: Run migrations and database management
  • App Structure Analysis: Get detailed app directory structures

Installation

  1. Clone or download this repository

  2. Install dependencies:

    Terminal
    npm install
    
  3. Build the server:

    Terminal
    npm run build
    

Configuration

Set the FRAPPE_PATH environment variable to point to your Frappe bench directory:

server.ts
export FRAPPE_PATH="/path/to/your/frappe/bench"

If not set, it defaults to /Users/mac/ERPNext/mkahawa.

Usage

With GitHub Copilot Chat (SSE Transport)

The server now supports SSE transport for use with GitHub Copilot Chat:

  1. Build and run the SSE server:

    Terminal
    npm run build
    npm run sse
    
  2. The server will be automatically discovered by GitHub Copilot Chat at http://localhost:3000/sse

With Claude Desktop (Stdio Transport)

Add the following configuration to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

config.json
{
  "mcpServers": {
    "frappe-dev": {
      "command": "node",
      "args": ["/Users/mac/ERPNext/mkahawa/frappe-mcp-server/dist/index.js"],
      "env": {
        "FRAPPE_PATH": "/Users/mac/ERPNext/mkahawa"
      }
    }
  }
}

With other MCP clients

Run the server directly:

bash
node dist/index.js

Available Tools

frappe_create_doctype

Creates a new Frappe DocType with JSON definition and Python controller.

Parameters:

  • app_name: Name of the Frappe app
  • doctype_name: Name of the DocType
  • module: Module where DocType belongs
  • fields: Array of field definitions
  • is_submittable: Whether the DocType is submittable (default: false)
  • is_child: Whether this is a child DocType (default: false)

frappe_run_bench_command

Executes bench commands for Frappe development.

Parameters:

  • command: Bench command to execute
  • site: Site name (optional)
  • cwd: Working directory (optional)

frappe_get_app_structure

Gets the directory structure of a Frappe app.

Parameters:

  • app_name: Name of the Frappe app

frappe_create_api_endpoint

Creates a custom API endpoint for a Frappe app.

Parameters:

  • app_name: Name of the Frappe app
  • endpoint_name: Name of the API endpoint
  • method: HTTP method (get, post, put, delete) (default: get)
  • code: Python code for the API endpoint

frappe_migrate_database

Runs database migration for a Frappe site.

Parameters:

  • site: Site name to migrate

frappe_install_app

Installs a Frappe app on a site.

Parameters:

  • app_name: Name of the app to install
  • site: Site name

frappe_create_app

Creates a new Frappe app.

Parameters:

  • app_name: Name of the new app
  • title: Title of the app
  • publisher: Publisher name
  • description: App description (optional)

Example Usage

Creating a DocType

JSON Config
{
  "app_name": "my_app",
  "doctype_name": "Customer Order",
  "module": "Orders",
  "fields": [
    {
      "fieldname": "customer",
      "label": "Customer",
      "fieldtype": "Link",
      "options": "Customer",
      "reqd": true
    },
    {
      "fieldname": "order_date",
      "label": "Order Date",
      "fieldtype": "Date",
      "reqd": true
    },
    {
      "fieldname": "total_amount",
      "label": "Total Amount",
      "fieldtype": "Currency",
      "reqd": true
    }
  ]
}

Running Bench Commands

JSON Config
{
  "command": "migrate",
  "site": "my_site.local"
}

Development

To modify the server:

  1. Edit files in the src/ directory
  2. Run npm run build to compile TypeScript
  3. Test with npm run dev for development mode

Requirements

  • Node.js 18+
  • Frappe/ERPNext bench environment
  • Access to Frappe bench commands

License

MIT License - see LICENSE file for details

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Frappe Dev MCP Server

Frappe Dev MCP Server is an MCP server that provides AI assistance for Frappe and ERPNext development. It offers tools for creating DocTypes, running bench commands, creating and managing apps, generating API endpoints, migrating databases, installing apps, and inspecting app directory structures.

Configure the server by setting the FRAPPE_PATH environment variable to your Frappe bench directory. You can run the built server with Node.js for MCP clients, use SSE at http://localhost:3000/sse with the SSE command, or configure the provided stdio example in Claude Desktop.

Yes, the frappe_create_doctype tool creates a DocType JSON definition and Python controller. Provide the app name, DocType name, module, and field definitions; you can also specify whether the DocType is submittable or a child DocType.

Yes, the server can execute bench commands with frappe_run_bench_command and run site database migrations with frappe_migrate_database. Bench commands accept a command, with optional site and working directory parameters, while migrations require a site name.

The server provides tools to create apps, install apps on sites, and inspect app directory structures. The available tools are frappe_create_app, frappe_install_app, and frappe_get_app_structure; app creation accepts an app name, title, publisher, and optional description.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFrappe Dev MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/frappe-dev-mcp-server?style=directory)](https://allmcps.com/mcp/frappe-dev-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/frappe-dev-mcp-server"><img src="https://allmcps.com/api/badge/frappe-dev-mcp-server?style=directory" alt="Frappe Dev MCP Server on AllMCPs" /></a>