Running and Testing the MCP Server
Follow these steps to run and test the MCP server:
1. Install uv (if you have not already)
- On Linux or macOS:
brew install uvpn
2. Create a virtual environment using uv:
uv venv .3. Activate the environment:
- On Linux or macOS:
source .venv/bin/activate- On Windows:
.venv\Scripts\activate4. Install Python 3.12+ (if you have not already)
5. Install Dependencies
uv pip install -r pyproject.toml6. Start the MCP Server (Python)
python mcp_server.pyOR
7. Test the MCP Server using MCP Inspector
npx @modelcontextprotocol/inspector uv --directory . run mcp_server.py7. Available tools
The following tools are available:
- get_electricity_terms_from_facts_label_pdf # Extracts specific data from the PDF that is useful in other jobs.
