MCP服务器运行与测试工具

提供MCP服务器的安装、配置、运行和测试功能,支持跨平台操作。

  • by lashawntab
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 lashawntab/mcp-household

使用说明

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 uv
    

pn

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\activate
    

4. Install Python 3.12+ (if you have not already)

5. Install Dependencies

uv pip install -r pyproject.toml

6. Start the MCP Server (Python)

python mcp_server.py

OR

7. Test the MCP Server using MCP Inspector

npx @modelcontextprotocol/inspector uv --directory . run mcp_server.py

7. Available tools

The following tools are available:

  1. get_electricity_terms_from_facts_label_pdf # Extracts specific data from the PDF that is useful in other jobs.