OLETools Secure MCP Server
安全地设置一个 MCP 服务器,用于使用 oletools 分析 Excel 文件。 (Ānquán de shèzhì yī gè MCP fúwùqì, yòng yú shǐyòng oletools fēnxī Excel wénjiàn.) Here's a breakdown of the translation and some considerations for a more comprehensive answer: * **安全地设置 (Ānquán de shèzhì):** "Securely set up" - This emphasizes the importance of security. * **一个 MCP 服务器 (yī gè MCP fúwùqì):** "An MCP server" - MCP is kept as is, assuming it's a known acronym in the context. If it needs to be explained, we'd need more context. * **用于使用 oletools 分析 (yòng yú shǐyòng oletools fēnxī):** "For analyzing using oletools" - This clarifies the purpose of the server. * **Excel 文件 (Excel wénjiàn):** "Excel files" **To provide a more helpful answer, I need more information about what you mean by "secure MCP server." Here are some questions to consider:** * **What is MCP in this context?** Is it a specific software package, a type of server, or something else? * **What are your security concerns?** Are you worried about data breaches, malware infections, unauthorized access, or something else? * **What is your existing infrastructure?** Do you have existing servers, cloud resources, or other infrastructure that you can use? * **What is your level of technical expertise?** Are you comfortable with command-line tools, server configuration, and security best practices? Once I have this information, I can provide a more detailed and specific answer. For example, I could provide instructions on how to: * **Harden the server operating system.** * **Configure firewalls and network security.** * **Implement access controls and authentication.** * **Secure the oletools installation and usage.** * **Monitor the server for security threats.** In the meantime, here are some general security considerations for any server that handles sensitive data: * **Keep the operating system and software up to date.** * **Use strong passwords and multi-factor authentication.** * **Limit access to the server to only authorized users.** * **Regularly back up the server data.** * **Monitor the server for suspicious activity.** Please provide more details so I can give you a more helpful and complete answer.
pradeep895
README
OLETools 安全 MCP 服务器
本项目提供了一个安全微服务,使用 FastMCP
分析 Microsoft Office 文档(Excel、Word、PowerPoint)和相关文件类型(如 XLL 插件),利用静态分析技术检测潜在的恶意内容。它利用了 oletools
、XLMMacroDeobfuscator
和 pefile
等外部工具。
功能
- 分析 VBA 宏 (
olevba
) - 检测 XLM 宏 (
XLMMacroDeobfuscator
,olevba
) - 检查 DDE 链接 (
msodde
) - 提取嵌入的 OLE 对象 (
oleobj
) - 分析 XLL 文件导出,查找可疑函数 (
pefile
) - 使用
iocextract
提取 IOC(URL、IP、哈希、电子邮件) - 提供基本的 MIME 类型和文件大小验证 (
python-magic
) - 使用可配置的评分系统进行基本风险分类
- 专为与支持 MCP 协议的系统集成而设计(如兼容版本的 Claude Desktop)。
前提条件
- Python 3.6+
- OLETools: 通过
pip install oletools
安装 - XLMMacroDeobfuscator: 通过
pip install XLMMacroDeobfuscator
安装 - python-magic: 通过
pip install python-magic-bin
(Windows) 安装 - iocextract (可选): 通过
pip install iocextract
安装,以进行高级 IOC 提取 - Claude Desktop 应用程序
安装
- 克隆存储库:
git clone https://github.com/pradeep895/oletools-mcp-server.git cd oletools-mcp-server
- 安装依赖项:
pip install -r requirements.txt
- 下载 "Claude Desktop" 应用程序,转到开发者设置,编辑 "claude_desktop_config.json" 文件,并将内容粘贴到 configuration.json 文件中。重启应用程序。
- 运行配置文件:
python config.py
- 运行服务器:
python mcp_service.py
- 转到 "Claude Desktop" 应用程序,检查是否出现 "锤子符号",出现则表示 MCP 工具可用。
- 输入 "analyze_vba_macros in <filepath\example.xlsm>",这将帮助您静态分析 Excel 文件并提供结果。
analyze_vba_macros file_path:"C:\path\to\your\example.xlsm"
推荐服务器
Crypto Price & Market Analysis MCP Server
一个模型上下文协议 (MCP) 服务器,它使用 CoinCap API 提供全面的加密货币分析。该服务器通过一个易于使用的界面提供实时价格数据、市场分析和历史趋势。 (Alternative, slightly more formal and technical translation): 一个模型上下文协议 (MCP) 服务器,利用 CoinCap API 提供全面的加密货币分析服务。该服务器通过用户友好的界面,提供实时价格数据、市场分析以及历史趋势数据。
MCP PubMed Search
用于搜索 PubMed 的服务器(PubMed 是一个免费的在线数据库,用户可以在其中搜索生物医学和生命科学文献)。 我是在 MCP 发布当天创建的,但当时正在度假。 我看到有人在您的数据库中发布了类似的服务器,但还是决定发布我的服务器。
mixpanel
连接到您的 Mixpanel 数据。 从 Mixpanel 分析查询事件、留存和漏斗数据。

Sequential Thinking MCP Server
这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。

Nefino MCP Server
为大型语言模型提供访问德国可再生能源项目新闻和信息的能力,允许按地点、主题(太阳能、风能、氢能)和日期范围进行筛选。
Vectorize
将 MCP 服务器向量化以实现高级检索、私有深度研究、Anything-to-Markdown 文件提取和文本分块。
Mathematica Documentation MCP server
一个服务器,通过 FastMCP 提供对 Mathematica 文档的访问,使用户能够从 Wolfram Mathematica 检索函数文档和列出软件包符号。
kb-mcp-server
一个 MCP 服务器,旨在实现便携性、本地化、简易性和便利性,以支持对 txtai “all in one” 嵌入数据库进行基于语义/图的检索。任何 tar.gz 格式的 txtai 嵌入数据库都可以被加载。
Research MCP Server
这个服务器用作 MCP 服务器,与 Notion 交互以检索和创建调查数据,并与 Claude Desktop Client 集成以进行和审查调查。

Cryo MCP Server
一个API服务器,实现了模型补全协议(MCP),用于Cryo区块链数据提取,允许用户通过任何兼容MCP的客户端查询以太坊区块链数据。