Sponsored by Deepsite.site

Osim Mcp Server

Created By
osim-groupa month ago
OSIM MCP Server is a standardized MCP server implementation providing structured security data standards for AI applications.
Content

OSIM MCP Server

Python FastMCP

基于 FastMCP 的 Model Context Protocol (MCP) 服务器,提供 OSIM (Open Security Information Model) 数据标准 schema 的查询和访问能力。

🚀 快速开始

使用 uvx(推荐,无需安装)

包已发布到 PyPI,可以直接使用 uvx 运行:

uvx osim-mcp-server

在 MCP 客户端中配置

Claude Desktop

在配置文件(~/Library/Application Support/Claude/claude_desktop_config.json)中添加:

{
  "mcpServers": {
    "osim-mcp-server": {
      "command": "uvx",
      "args": ["osim-mcp-server"]
    }
  }
}

Cursor

在 MCP 设置中添加:

{
  "mcpServers": {
    "osim-mcp-server": {
      "command": "uvx",
      "args": ["osim-mcp-server"]
    }
  }
}

从源码运行

# 克隆仓库
git clone https://github.com/osim-group/osim-mcp-server.git
cd osim-mcp-server

# 首先获取 schemas(必需)
# 确保已安装 git
python update_schemas.py

# 安装依赖并运行
uv sync
uv run python server.py

重要:仓库本身不包含 schemas 目录,需要先运行 update_schemas.py 获取 schemas 文件才能正常运行。

更新 Schemas

项目中的 schemas 文件来源于 OSIM Schema 仓库。如果需要获取或更新最新的 schemas,可以使用项目提供的更新脚本:

# 确保已安装 git
python update_schemas.py

脚本会自动:

  • 从 GitHub 仓库克隆最新的 schemas
  • 备份现有的 schemas(如果存在)
  • 更新本地 schemas 目录
  • 验证更新结果

注意:更新脚本需要系统已安装 git 命令。

📚 功能特性

MCP 工具

  1. list_schema_names - 列出所有可用的数据标准 schema 名称

    • 返回格式:{group}.{category}.{title}
    • 示例:log.network_session_audit.http_audit
  2. describe_schemas - 获取指定 schema 的描述信息

    • 参数:schema_names (List[str])
    • 返回:字典,键为 schema 名称,值为描述信息
  3. get_schema - 获取指定 schema 的完整字段定义

    • 参数:schema_path (str),格式为 {group}.{category}.{title}
    • 返回:字段定义字典,包含字段名、标签、类型、要求、描述等信息

MCP 资源

通过资源 URI 访问 schema 文件内容:

  • URI 格式data-standard://{group}/{category}/{title}
  • 示例
    • data-standard://log/network_session_audit/http_audit
    • data-standard://alert/network_attack/apt_attack
    • data-standard://asset/business_asset/web_application

📊 数据标准分类

项目提供完整的 OSIM 数据标准支持,包括:

  • 告警 (Alert):异常行为、数据安全、恶意软件、网络攻击等
  • 资产 (Asset):业务资产、云资产、数据资产、网络资产等
  • 日志 (Log):账户操作审计、数据安全审计、主机行为审计、网络会话审计等
  • 事件 (Incident):安全事件记录和分类
  • 设备检测 (Device Detection):EDR、防火墙、WAF、IDS/IPS 等各类安全设备

数据来源:所有 schema 文件均来源于 OSIM Schema 仓库

🛠️ 开发

获取/更新 Schemas

项目提供了脚本用于从 GitHub 仓库同步最新的 schemas:

python update_schemas.py

注意:构建分发包前需要先获取 schemas,因为分发包需要包含 schemas 文件。

构建分发包

# 确保已获取 schemas
python update_schemas.py

# 构建分发包
uv build

发布到 PyPI

# 安装 twine
uv pip install twine

# 上传到 PyPI
uv run twine upload dist/*

发布后即可通过 uvx osim-mcp-server 使用。

📝 许可证

Apache License 2.0

🙏 致谢

Server Config

{
  "mcpServers": {
    "osim-mcp-server": {
      "command": "uvx",
      "args": [
        "osim-mcp-server"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server