GitHubスター
0
ユーザー評価
未評価
フォーク
0
イシュー
0
閲覧数
1
お気に入り
0
README
Local Network Request MCP Server
An MCP server that sends HTTP requests to endpoints on your local network.
Features
- Send HTTP requests (GET, POST, PUT, DELETE, etc.) to local network endpoints
- Support for JSON payloads and custom headers
- Comprehensive error handling for timeouts and connection issues
- Built with FastMCP framework
Setup
- Install dependencies:
uv sync
- Test the server:
uv run python3 main.py
Connecting to Claude
Add this configuration to your Claude MCP settings:
Using Claude Desktop
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"local-network-requests": {
"command": "uv",
"args": ["run", "python3", "/absolute/path/to/main.py"],
"cwd": "/Users/kazikgolinski/Documents/Projekty_priv/MPCtoAPI"
}
}
}
Using Claude CLI
Add the MCP server:
claude mcp add local-network-requests uv run python3 /Users/kazikgolinski/Documents/Projekty_priv/MPCtoAPI/main.py
Or find your uv path and use it:
which uv
claude mcp add local-network-requests /full/path/to/uv run python3 /Users/kazikgolinski/Documents/Projekty_priv/MPCtoAPI/main.py
Usage
Once connected, you can use the send_request
tool:
- url: Target endpoint (e.g., "http://192.168.1.245:8000")
- method: HTTP method (default: "POST")
- payload: JSON data for POST/PUT or query params for GET
- headers: Optional HTTP headers
- timeout: Request timeout in seconds (default: 30)
Example
Send a POST request to http://192.168.1.100:8080 with JSON payload {"action": "status"}