π¦
Tool Server
LLM tool integration server using Model Context Protocol (MCP) and FastAPI
0 installs
Trust: 48 β Fair
Ai
Installation
npx mcp-tool-serverAsk AI about Tool Server
Powered by Claude Β· Grounded in docs
I know everything about Tool Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
MCP Tool Server (FastAPI)
A lightweight Model Context Protocol (MCP)-style server built with FastAPI that exposes backend tools (e.g., sentiment analysis, calculator) to LLM/agent workflows via structured JSON requests and responses.
Key Features
- Tool routing layer to invoke backend utilities through a single API
- Structured JSON I/O designed for LLM/agent compatibility
- Example tools included: sentiment analysis + calculator
- Clean, minimal project structure for easy extension
Project Structure
. βββ main.py βββ tools_registry.py βββ tools/ βββ models/ βββ ml_training/ βββ README.md
API Endpoints
POST /invoke-tool
Invokes a registered backend tool using structured JSON input.
Request
{
"tool": "sentiment",
"input": "I really like how this MCP server works"
}
{
"tool": "sentiment",
"result": {
"label": "positive",
"score": 0.91
}
}
**Response**
```json
{
"tool": "sentiment",
"result": {
"label": "positive",
"score": 0.91
}
}
### Available Tools
- `sentiment` β sentiment analysis on input text
- `calculator` β evaluates arithmetic expressions
