Skip to main content
Glama

Build MCP Server

by TeodorTrotea

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

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

Deploy Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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.

  1. Features
    1. Installation
      1. From GitHub (Recommended)
      2. Local Development
    2. Configuration
      1. Available Tools
        1. run_build
        2. run_test
        3. check_package_json
        4. install_dependencies
        5. lint_code
      2. Usage Examples
        1. Error Handling
          1. Security
            1. Development
              1. License

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  Provides code manipulation, execution, and version control capabilities. It allows AI assistants to read, write, and execute code while maintaining a history of changes.
                  Last updated -
                  9
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  Provides tools for analyzing project structures, searching through codebases, managing dependencies, and performing file operations with advanced filtering capabilities.
                  Last updated -
                  6
                  160
                  1
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  A simple AI development tool that helps users interact with AI through natural language commands, offering 29 tools across thinking, memory, browser, code quality, planning, and time management capabilities.
                  Last updated -
                  33
                  8
                • A
                  security
                  A
                  license
                  A
                  quality
                  Provides structured spec-driven development workflow tools for AI-assisted software development with sequential spec creation (Requirements → Design → Tasks). Features a real-time web dashboard for monitoring project progress and managing development workflows.
                  Last updated -
                  14
                  1,359
                  493
                  GPL 3.0
                  • Apple
                  • Linux

                View all related MCP servers

                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/TeodorTrotea/mcptest'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server