Build MCP Server

Build MCP Server

Enables AI assistants to manage development workflows by running build commands, executing tests, analyzing package.json files, installing dependencies, and performing code linting. Supports multiple package managers (npm, yarn, pnpm) and provides detailed error reporting for development operations.

Category
Visit Server

README

Build MCP Server

A Model Context Protocol (MCP) server that provides build and development tools for AI assistants. This server enables AI agents to run build commands, tests, linting, and manage dependencies in development projects.

Features

  • Build Management: Run build commands with customizable parameters
  • Test Execution: Execute test suites and report results
  • Package Analysis: Read and analyze package.json files
  • Dependency Management: Install dependencies using npm, yarn, or pnpm
  • Code Linting: Run linting tools and report code quality issues

Installation

From GitHub (Recommended)

npx build-mcp-server

Local Development

git clone <your-repo-url>
cd build-mcp-server
npm install
npm run build

Configuration

Add this server to your MCP configuration file:

{
  "mcpServers": {
    "build-server": {
      "command": "npx",
      "args": [
        "-y",
        "build-mcp-server"
      ],
      "env": {}
    }
  }
}

Or for local development:

{
  "mcpServers": {
    "build-server": {
      "command": "node",
      "args": [
        "/path/to/build-mcp-server/dist/index.js"
      ],
      "env": {}
    }
  }
}

Available Tools

run_build

Execute build commands in a project directory.

Parameters:

  • command (string, optional): Build command to run (default: "npm run build")
  • directory (string, optional): Directory to run the build in (default: current directory)

Example:

Run build command "npm run build" in the current directory

run_test

Execute test suites in a project directory.

Parameters:

  • command (string, optional): Test command to run (default: "npm test")
  • directory (string, optional): Directory to run tests in (default: current directory)

Example:

Run tests using "yarn test" in the ./frontend directory

check_package_json

Analyze package.json files and extract key information.

Parameters:

  • directory (string, optional): Directory containing package.json (default: current directory)

Example:

Check package.json in the current directory

install_dependencies

Install project dependencies using various package managers.

Parameters:

  • manager (string, optional): Package manager to use - npm, yarn, or pnpm (default: "npm")
  • directory (string, optional): Directory to install dependencies in (default: current directory)

Example:

Install dependencies using yarn in the ./backend directory

lint_code

Run code linting and quality checks.

Parameters:

  • command (string, optional): Lint command to run (default: "npm run lint")
  • directory (string, optional): Directory to run linting in (default: current directory)

Example:

Run linting with "eslint ." command

Usage Examples

Once configured, you can use natural language to interact with the build server:

  • "Build the project"
  • "Run tests in the frontend directory"
  • "Install dependencies using yarn"
  • "Check what scripts are available in package.json"
  • "Lint the code and show me any issues"

Error Handling

The server provides detailed error messages and output for all operations. Build failures, test errors, and linting issues are clearly reported with full context.

Security

This server executes shell commands in the specified directories. Ensure you trust the environment and commands being executed. The server includes timeout protections to prevent long-running processes.

Development

To contribute or modify the server:

# Clone and install
git clone <repo-url>
cd build-mcp-server
npm install

# Development with auto-reload
npm run dev

# Build for production
npm run build

# Test the server
npm start

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured