Sales Analysis MCP Server
Allows deploying the MCP server to Prefect Horizon for hosting and management.
Click on "Deploy 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 deployed
Maintenance
Related MCP Connectors
Sales analytics, ML forecasting, customer segmentation, and trend analysis.
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Connects Amazon Seller Central and Amazon Advertising to any MCP client. Settlement-accurate P&L - every fee, refund and reimbursement as Amazon posted it - plus contribution margin and breakeven per product, per marketplace, per day. Full Sponsored Products, Brands and Display management: search terms, placements, keyword and competitor research, dayparting, automation rules. 107 tools: 72 read-only, 29 that stage a reviewable diff for your approval, and 6 confirmation/support actions. Write tools stage a reviewable diff; applying it takes a separate confirmation.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceAn MCP server that enables AI assistants to load, query, and analyze local CSV files using tools for filtering, aggregation, and grouping. It provides capabilities to describe schemas, calculate statistics, and sample data directly from CSV files.6-
- FlicenseNot gradedqualityDmaintenanceAnalyzes sales CSV data to filter records, compute KPIs, and generate AI-powered insights and recommendations using OpenAI.-
- AlicenseBqualityDmaintenanceLoads CSV files into a temporary SQLite database and provides comprehensive data analysis tools via MCP, enabling AI assistants to query, analyze, and export data using natural language.14MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI models to interact with local CSV and Parquet data through MCP tools, providing summarization and analysis capabilities.1-