home / mcp / planning data mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"alizoli-planningdatagovuk-api": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "{...} - JSON string configuration",
"SECURITY": "YOUR_API_KEYS_OR_KEYS",
"CONFIG_PATH": "path/to/mcp_config.json"
}
}
}
}You run an MCP server that connects to a defined OpenAPI data source and exposes a structured protocol for clients to interact with planning data. This server enables you to query, explore, and manage data through a consistent MCP interface, making integration with your applications straightforward and scalable.
Start the server in stdio mode to interact with it directly from your development environment. Once the server is running, you can connect your MCP client to it and begin sending requests to explore the planning data exposed by the MCP endpoint.
Prerequisites are Python 3.9 or newer and the Python package manager tools. You will also use uv to run commands in a lightweight, asynchronous environment when needed.
# Step 1: Install Python dependencies (from a suitable environment)
pip install -e ".[dev]"
# If you prefer using uv to run commands directly, you can install the editable package with uv
uv pip install --editable ".[dev]"
# Step 2: Run the MCP server in stdio mode
python mcp_server/main.py stdioConfiguration and runtime are controlled primarily through environment variables. The following variables are commonly used to configure the MCP server:
Check code quality and formatting using the linting tool to enforce style and catch potential issues.
Automatically format code according to project style guidelines.
Run static analysis tools (type checks, security checks) to ensure code safety and correctness.
Execute unit tests and generate a coverage report to verify functionality.