home / mcp / certificate authority mcp server

Certificate Authority MCP Server

MCP Server generated by mcp.ag2.ai

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ag2-mcp-servers-certificate-authority-api": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "{\"transport\":\"stdio\",\"name\":\"ca_mcp\"}",
        "SECURITY": "YOUR_API_KEY",
        "CONFIG_PATH": "mcp_server/mcp_config.json"
      }
    }
  }
}

You have an MCP server that exposes the Google Private CA OpenAPI surface for clients to interact with in a structured, contract-driven way. It lets you plug in a client that talks to the API via an MCP protocol, enabling consistent, toolable access to certificate authority operations.

How to use

To use this MCP server, start it in the transport mode you prefer and connect your MCP client to the server endpoint. The server is designed to run locally or in environments where you can invoke it as a Python process and communicate over stdio.

How to install

Prerequisites are Python 3.9 or newer, plus the Python package manager tools you use to install dependencies.

Step by step installation and setup steps you should follow to get the MCP server running locally.

# Prerequisites
python3.9+ --version
pip --version

# 1) Clone the project
git clone <repository-url>
cd mcp-server

# 2) Install dependencies
# If you are using development containers, run the container setup:
#   .devcontainer/setup.sh
# Otherwise install directly:
pip install -e ".[dev]"

# Alternative using uv (if you prefer uv to manage environments):
uv pip install --editable ".[dev]"

Running the server

You can run the MCP server using a Python command that starts in stdio mode by default. This opens a service that your MCP client can connect to via the stdio transport.

python mcp_server/main.py stdio

Configuration and environment variables

You configure the server using environment variables or a JSON configuration file. The core options shown include a path to a configuration file and a JSON string containing configuration data, plus a security-related variable set.

# Examples of environment variables you can use
export CONFIG_PATH=mcp_server/mcp_config.json
export CONFIG='{"transport":"stdio","name":"ca_mcp"}'
export SECURITY={"apiKey":"YOUR_API_KEY"}

# Run the server with environment-configured settings
python mcp_server/main.py stdio

Notes on testing and development

Development uses linting, static type checking, and testing tools to ensure code quality. Use the provided scripts to run checks and tests as you develop.

# Linting and formatting
ruff check
ruff format

# Static analysis
./scripts/static-analysis.sh

# Run tests with coverage
./scripts/test.sh
./scripts/test-cov.sh
Certificate Authority MCP Server - ag2-mcp-servers/certificate-authority-api