home / mcp / domains mcp server

Domains 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-domains": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "JSON_STRING",
        "SECURITY": "API_KEY_OR_OTHER_SECURITIES",
        "CONFIG_PATH": "JSON_PATH_OR_FILE"
      }
    }
  }
}

You run an MCP (Model Context Protocol) Server to expose a structured model/context API derived from a OpenAPI specification. This server lets MCP clients connect in stdio mode, fetch model and context data, and perform defined actions against the configured API surface in a streamlined, protocol-enabled way.

How to use

Start the server in stdio mode to interact with MCP clients directly from your local environment. The server exposes the OpenAPI-driven model context and supports configuration via environment variables. When running, you can connect a client to the server to request model information, perform actions, and receive structured responses according to the MCP protocol.

How to install

Prerequisites: Python 3.9 or newer, and a Python package manager (pip). You may also use uv to run commands as an alternative.

1) Clone the project directory and navigate into it.

2) Install development dependencies.

3) Run the MCP server in stdio mode using Python.

Configuration and security

Configure the server using environment variables to control file paths, inline JSON configuration, and security parameters.

{
  "mcpServers": [
    {
      "type": "stdio",
      "name": "mcp_server",
      "command": "python",
      "args": ["mcp_server/main.py", "stdio"]
    }
  ],
  "envVars": [
    {"name": "CONFIG_PATH", "description": "Path to a JSON configuration file", "example": "/path/to/mcp_config.json"},
    {"name": "CONFIG", "description": "Inline JSON configuration string", "example": "{...}"},
    {"name": "SECURITY", "description": "Security parameters such as API keys", "example": "YOUR_API_KEY"}
  ]
}

Notes and troubleshooting

If you need to adjust how the server starts, modify the command in the runtime config accordingly. Ensure required environment variables are present when starting the server. If a start command fails, verify that Python and the necessary dependencies are installed, and confirm that the correct path to the main script is provided.

Domains MCP Server - ag2-mcp-servers/domains