Business Operations MCP Server

Business Operations MCP Server

An MCP server exposing internal business operations as tools — task management (create, list, update status) and RAG-style semantic search over an internal knowledge base (leave, expense, and onboarding policies) that any MCP-compatible AI agent can call directly for grounded, non-hallucinated answers.

Category
访问服务器

README

Business Operations MCP Server

An MCP (Model Context Protocol) server that exposes internal business operations — task management and internal-knowledge-base search — as tools any MCP-compatible AI agent (Claude Desktop, Claude Code, or a custom LangGraph/CrewAI agent) can call directly.

Built to demonstrate the core skill set behind "AI agent + business automation" roles: designing tool interfaces an LLM can reliably call, grounding answers in real company documents instead of letting the model guess, and wiring that up through the Model Context Protocol so it can be plugged into any MCP client without custom integration code per client.

Why this exists

Most "AI agent" demos are a single chatbot wrapped around an API call. This project instead demonstrates the actual building block enterprises need: a reusable, typed tool server that any agent framework can attach to — which is exactly what MCP was designed for, and exactly what shows up in job descriptions asking for "MCP servers, tool orchestration, and context integrations."

Tools Exposed

Tool Description
create_task Create an operational task (title, description, priority, assignee)
list_tasks List/filter tasks by status or assignee, with pagination
update_task_status Move a task to open / in_progress / done / blocked
search_knowledge_base Semantic search over internal docs (RAG-style) to answer policy questions grounded in real content

How the RAG tool works

search_knowledge_base loads every .md/.txt file in knowledge_base/, builds a TF-IDF index, and ranks documents by cosine similarity to the query. This intentionally avoids requiring an API key or external vector DB so the server runs fully offline out of the box — the retrieval layer is swappable for a real embedding model + vector store (e.g. OpenAI embeddings

  • Chroma/Pinecone) without changing the tool's interface, which is the same architecture pattern used in production RAG systems.

Three sample internal documents are included (leave_policy.md, expense_policy.md, onboarding_process.md) so the tool is demonstrably useful the moment you clone the repo — ask it "how many sick days do I get" and it retrieves the right document, not a hallucinated answer.

Tech Stack

  • Protocol: Model Context Protocol (MCP), official Python SDK (FastMCP)
  • Validation: Pydantic v2 (typed inputs, constraints, auto-generated schemas)
  • Storage: SQLite (tasks) — zero external dependencies to run
  • Retrieval: scikit-learn TF-IDF + cosine similarity (swappable for a vector DB)

Setup & Run

# Clone the repository
git clone https://github.com/shdbfrz/Business-Operations-MCP-Server-AI-Agent-Tooling-for-Task-Management-Knowledge-Base-Retrieval.git
cd business-ops-mcp

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate      # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Run the server (stdio transport — for local MCP clients)
python server.py

Connecting to Claude Desktop

Add to your Claude Desktop MCP config (claude_desktop_config.json):

{
  "mcpServers": {
    "business_ops": {
      "command": "python",
      "args": ["/absolute/path/to/business-ops-mcp/server.py"]
    }
  }
}

Restart Claude Desktop, and the four tools become available to call directly in conversation — e.g. "create a high-priority task to follow up with the vendor" or "what's our expense reimbursement policy for amounts over 10,000?"

Project Structure

business-ops-mcp/
├── server.py              # MCP server + tool definitions (FastMCP)
├── storage.py              # SQLite task storage + TF-IDF knowledge base search
├── knowledge_base/         # Sample internal documents for RAG search
│   ├── leave_policy.md
│   ├── expense_policy.md
│   └── onboarding_process.md
├── requirements.txt
└── README.md

Design Notes

  • Typed, validated inputs: every tool uses a Pydantic model with explicit Field constraints (min/max length, enums for status/priority) so the LLM gets clear, structured error messages instead of silent failures on bad input.
  • Read-only vs. mutating tools are annotated: list_tasks and search_knowledge_base are marked readOnlyHint=True; create_task and update_task_status are not — this lets MCP clients reason about which tool calls are safe to retry or require confirmation.
  • Pagination built in on list_tasks from the start, rather than bolted on later, since unbounded result sets are a common way agent tool calls blow up context windows.
  • Grounded answers over guesses: search_knowledge_base returns an explicit empty-result signal (not a fabricated answer) when nothing relevant is found, so the calling agent knows to say "I don't know" instead of hallucinating a policy that doesn't exist.

Possible Extensions

  • Swap the TF-IDF retrieval for real embeddings + a vector DB (Chroma/Pinecone) for semantic search that generalizes beyond keyword overlap.
  • Add a draft_email tool that composes a reply grounded in a task or KB result.
  • Wrap the server with Streamable HTTP transport to make it a remote, multi-client MCP server instead of local stdio.
  • Connect it to n8n or a LangGraph agent as an external tool node to build a full end-to-end workflow (e.g. Slack message → agent creates task → agent answers policy question from KB → posts back to Slack).

Author

Shadab FirozGitHub · LinkedIn

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选