Sales Analysis MCP Server
Allows deploying the MCP server to Prefect Horizon for hosting and management.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sales Analysis MCP ServerWhat were the top 5 products by revenue last month?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FastMCP demo: аналіз продажів із CSV
MCP Demo показує, як перетворити кілька Python-функцій для аналізу продажів на MCP tools/resources/prompts.
Файли
sales_mcp_server.py- FastMCP server.sales_data.csv- маленький приклад продажів за 3 місяці.
Related MCP server: MCP CSV Sales Analyzer
Що демонструє приклад
tool: load_sales_summary- рахує загальні метрики продажів.tool: top_products- повертає топ продуктів за виручкою, прибутком або кількістю.tool: monthly_sales_report- показує динаміку продажів по місяцях.resource: sales://sample-csv- дає read-only доступ до sample CSV.resource: sales://business-questions- список типових бізнес-питань.prompt: sales_report_prompt- шаблон для AI sales analyst.
Локальна перевірка без MCP host
python3 -m pip install -r requirements.txt
python3 sales_mcp_server.py --demoЦей режим викликає ті самі Python-функції напряму і друкує результат у термінал.
Перевірка FastMCP entrypoint
fastmcp inspect sales_mcp_server.py:mcp
fastmcp run fastmcp.jsonfastmcp.json описує production-style запуск через HTTP transport. MCP endpoint буде доступний на /mcp/.
Deploy to Prefect Horizon
Push this repo to GitHub.
Open
https://horizon.prefect.io/and choose the GitHub repo.Configure the server with:
Server name:
sales-analyticsабо інше унікальне ім'я.Entrypoint:
sales_mcp_server.py:mcp.Authentication: увімкніть, якщо сервер має бути доступний тільки для вашої організації.
Horizon має автоматично встановити dependencies з
requirements.txt.Після deploy перевірте tools/resources/prompts у Horizon Inspector.
Очікуваний remote MCP endpoint матиме формат:
https://<server-name>.fastmcp.app/mcpЗапуск як MCP server
python3 -m pip install -r requirements.txt
python3 sales_mcp_server.pyПісля цього сервер можна підключати до MCP host, який підтримує локальні stdio сервери.
Для HTTP запуску поза Horizon:
python3 sales_mcp_server.py --httpЗа замовчуванням HTTP server слухає 0.0.0.0:8000, а health check доступний на /health. Якщо platform задає PORT, сервер автоматично запуститься в HTTP mode.
Приклад конфігурації для host, який очікує команду запуску:
{
"mcpServers": {
"sales-analytics": {
"command": "python3",
"args": [
"/absolute/path/to/sales_mcp_server.py"
]
}
}
}Бізнес-сценарій для показу
Агент читає
sales://business-questions.Агент викликає
load_sales_summary.Агент викликає
top_productsдляrevenueабоgross_profit.Агент викликає
monthly_sales_report.Агент використовує
sales_report_promptі готує короткий Markdown-звіт.
Обмеження безпеки
tools читають тільки CSV-файли всередині цієї демо-папки;
абсолютні шляхи заборонені;
файли поза демо-папкою заборонені;
сервер нічого не записує на диск;
сервер не використовує мережу й API keys.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dmitriy-shtefan/fast-mcp-demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server