MCP Enterprise Tools Server
An MCP-based enterprise tools server that exposes company knowledge search and employee database lookup as callable tools.
README
Project-05-MCP-Enterprise-Tools-Server
An MCP-based enterprise tools server that exposes company knowledge search and employee database lookup as callable tools. The project demonstrates how an AI client such as Cursor, Claude Desktop, or a custom Python MCP client can discover tools, call them through the Model Context Protocol, and return structured results.
This project currently includes a document-search tool backed by an existing RAG API and a SQLite query tool for employee data.
Features
- MCP server built with
FastMCP search_documentstool for company knowledge lookup through a RAG APIquery_databasetool for SQLite employee database queries- Local stdio MCP client for testing tool discovery and execution
- Cursor MCP configuration example
- Environment-based configuration for the RAG API URL
- JSON-formatted database responses
- Small sample employee database for quick testing
Workflow
User / MCP Client
|
v
MCP Server
|
+--> search_documents --> RAG API --> Company Knowledge
|
+--> query_database ----> SQLite ----> Employee Records
|
v
Tool Response
Screenshots
Cursor MCP Client Integration

Database Query Tool

Company Document Search Tool

Project Structure
.
|-- db.py # Creates and seeds the sample employees SQLite database
|-- employees.db # Local SQLite database generated for testing
|-- mcp_client.py # CLI MCP client using stdio transport
|-- mcp_config.json # MCP server configuration example
|-- mcp_server.py # FastMCP server with enterprise tools
|-- requirements.txt # Python dependencies
|-- README.md # Project documentation
`-- Screenshots/ # Project screenshots
Tools
search_documents
Searches company documents by sending the user query to a RAG API.
Input:
{
"query": "what is refund duration?"
}
Output:
Context: ...
Sources: ...
query_database
Runs a SQL query on the local SQLite employee database and returns rows as formatted JSON.
Input:
{
"sql": "select * from employees"
}
Output:
[
{
"id": 1,
"name": "Harry",
"salary": 50000,
"department": "AI"
}
]
Setup
Clone the repository:
git clone https://github.com/Harry-GenAI/05-mcp-enterprise-tool-server.git
cd 05-mcp-enterprise-tool-server
Create and activate a virtual environment:
python -m venv venv
venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Create a .env file:
RAG_URL=http://localhost:8000/rag
Create the sample database:
python db.py
Run MCP Client
Use the local CLI client to start the MCP server over stdio, list available tools, and call one of them:
python mcp_client.py
Example database query:
Enter tool name: query_database
Enter SQL Query: select * from employees
Example document search:
Enter tool name: search_documents
Enter search query: what is refund duration?
Cursor MCP Configuration
Add this configuration to your Cursor MCP settings:
{
"mcpServers": {
"enterprise_tools": {
"command": "python",
"args": ["mcp_server.py"]
}
}
}
After configuration, Cursor can discover and call:
search_documentsquery_database
Tech Stack
- Python
- Model Context Protocol
- FastMCP
- SQLite
- Requests
- python-dotenv
- Cursor MCP integration
Future Upgrades
- Add SQL safety validation for read-only database access
- Support more enterprise tools such as CRM, HR, tickets, and policy lookup
- Add FastAPI wrapper for HTTP-based testing
- Return richer structured responses from the RAG tool
- Add authentication for protected internal tools
- Add automated tests for MCP tool calls
Note
This project is for learning and demonstration. Keep .env, virtual environments, production databases, private documents, and secrets out of GitHub.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。