Feature Engineering MCP Server
Exposes the automated feature engineering LangGraph agent as MCP tools, enabling dataset profiling, feature planning, and feature code execution through MCP-compatible hosts.
README
Feature Engineering MCP Server
An MCP (Model Context Protocol) server that exposes the existing
ahutosh173/automated-feature-engineering LangGraph agent as reusable tools.
The original agent takes a CSV, a fraud/modus-operandi objective, schema metadata, ID column and label column, then:
- analyzes the modeling objective,
- proposes candidate features,
- generates pandas feature-engineering code,
- executes that code, and
- writes an Excel feature file.
This project adds an MCP interface on top of that workflow.
Architecture
MCP Host / LLM Client
|
| MCP
v
+-----------------------+
| Feature Engineering |
| MCP Server |
+-----------+-----------+
|
+-----------+-----------+
| |
v v
Dataset profiling Existing LangGraph
Feature Engineering Agent
|
+--------------+--------------+
| | |
Analyze MO Propose features Generate code
|
v
Execute features
|
v
Excel output
MCP tools
| Tool | Purpose |
|---|---|
profile_dataset |
Inspect a CSV before running the agent |
run_feature_engineering |
Run the complete existing LangGraph agent |
get_feature_engineering_plan |
Run the agent and return its analysis, candidate features and generated code |
health_check |
Verify server configuration |
Important design decision
The MCP layer does not replace the existing agent.
It is an adapter around the existing agent so that an MCP-compatible host can discover and call the feature-engineering workflow as a tool.
The original repository is:
https://github.com/ahutosh173/automated-feature-engineering
1. Prerequisites
- Python 3.10+
- Git
- Access to the original feature-engineering agent repository
- The LLM configuration required by the original agent
The MCP Python SDK currently requires Python 3.10+.
2. Clone both repositories
Recommended layout:
projects/
├── automated-feature-engineering/
└── feature-engineering-mcp/
Clone the original repository:
git clone https://github.com/ahutosh173/automated-feature-engineering.git
Clone this repository:
git clone <YOUR-MCP-REPO-URL>
3. Create a virtual environment
From this repository:
python -m venv .venv
Windows:
.venv\Scripts\activate
Linux/macOS:
source .venv/bin/activate
Install dependencies:
pip install -r requirements.txt
Install the original agent's dependencies:
pip install -r ../automated-feature-engineering/requirements.txt
4. Configure the original agent
The original repository currently expects its own .env configuration,
including HF_TOKEN.
Configure that repository exactly as described in its README.
Do not commit API keys or tokens.
5. Configure this MCP server
Copy:
cp .env.example .env
Windows PowerShell:
Copy-Item .env.example .env
Set:
FEATURE_ENGINEERING_REPO=../automated-feature-engineering
If the two repositories are somewhere else, use an absolute path.
Example:
FEATURE_ENGINEERING_REPO=C:/projects/automated-feature-engineering
6. Run the MCP server
For local stdio usage:
python server.py
The process will wait for an MCP client over stdin/stdout.
For MCP Inspector development:
mcp dev server.py
The official MCP Python SDK provides the Inspector development workflow and supports defining tools directly from typed Python functions.
7. Test without an external MCP host
Run:
pytest -q
The tests use the MCP Python client's in-memory connection and therefore test the MCP tool definitions without starting a subprocess.
Example: profile a dataset
An MCP client can call:
{
"name": "profile_dataset",
"arguments": {
"csv_path": "../automated-feature-engineering/data/train.csv"
}
}
Example response:
{
"success": true,
"rows": 10000,
"columns": 25,
"columns_info": [
{
"name": "amount",
"dtype": "float64",
"missing": 0,
"missing_pct": 0.0,
"unique": 9000
}
]
}
Example: run the agent
{
"name": "run_feature_engineering",
"arguments": {
"csv_path": "../automated-feature-engineering/data/train.csv",
"mo_name": "Fraud Detection",
"mo_description": "Identify fraudulent transactions based on account behavior",
"data_schema": [
{
"name": "txn_id",
"dtype": "object",
"description": "Transaction ID"
},
{
"name": "amount",
"dtype": "float64",
"description": "Transaction amount"
}
],
"id_column": "txn_id",
"label_column": "fraud"
}
}
Why MCP is useful here
Without MCP, the feature-engineering workflow is primarily a Python application.
With MCP, an MCP-compatible host can discover the feature-engineering tools and decide when to invoke them.
For example:
User:
"Analyze my fraud dataset and create account-level features."
LLM:
-> profile_dataset
-> run_feature_engineering
-> inspect result
-> explain generated features
Security note
The original agent generates Python code with an LLM and executes it using
exec(). That is a high-risk operation if untrusted model output or untrusted
users can reach the server.
For production:
- run the agent in an isolated container,
- use a restricted filesystem,
- validate generated code,
- restrict imports,
- restrict input/output paths,
- use resource and CPU/time limits,
- do not expose arbitrary filesystem access,
- add authentication/authorization before remote deployment.
This repository intentionally does not claim that the existing generated-code execution is production-safe.
Suggested next upgrades
- Add a feature evaluation tool.
- Add model-performance comparison.
- Add feature lineage metadata.
- Add approval/review before generated code executes.
- Add Streamable HTTP deployment.
- Add authentication.
- Add LangGraph checkpoint/session IDs instead of the fixed thread ID used by the original workflow.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。