terminalserver-rest-mcp
v0.1.1
Published
MCP server exposing tools for pythonRestModule REST endpoints
Downloads
10
Readme
terminalServer (MCP server for pythonRestModule)
This MCP server exposes one MCP tool per REST endpoint from your pythonRestModule FastAPI service.
Tools exposed
customer_data→POST /customer/dataproduct_offers→POST /customers/{customer_id}/offersassigned_products→POST /customer/assigned-productshealth_check→GET /health
Configuration
- REST_BASE_URL: base URL of the REST service (default
http://127.0.0.1:8000)- Example:
http://127.0.0.1:18080
- Example:
Install & build
cd C:\mDev\mcp-server\terminalServer
npm install
npm run buildRun (stdio transport)
$env:REST_BASE_URL="http://127.0.0.1:8000"
npm run startDev run (no build)
$env:REST_BASE_URL="http://127.0.0.1:8000"
npm run devQuick test with MCP Inspector (optional)
npm run build
npm run inspectorCursor / Claude Desktop config (example)
Option B: npx (portable, recommended)
After you publish this as an npm package, users can integrate without hardcoding paths:
{
"mcpServers": {
"terminalServer": {
"command": "npx",
"args": ["-y", "terminalserver-rest-mcp@latest"],
"env": {
"REST_BASE_URL": "http://127.0.0.1:8000"
}
}
}
}Local dev (path-based)
If someone cloned the repo locally, they can still run via:
npm run build- then point to the built entry:
{
"mcpServers": {
"terminalServer": {
"command": "node",
"args": ["<path-to-clone>\\\\build\\\\bin.js"],
"env": {
"REST_BASE_URL": "http://127.0.0.1:8000"
}
}
}
}