ServiceNow MCP 服务器
一个与 ServiceNow 交互的模型上下文协议 (MCP) 服务器,允许 AI 代理通过安全的 API 访问和操作 ServiceNow 数据。该服务器支持与 ServiceNow 进行自然语言交互,从而更轻松地搜索、更新记录和管理脚本。
特征
资源
servicenow://incidents:列出最近发生的事件servicenow://incidents/{number}:通过编号获取特定事件servicenow://users:列出用户servicenow://knowledge:列出知识文章servicenow://tables:列出可用表servicenow://tables/{table}:从特定表中获取记录servicenow://schema/{table}:获取表的架构
工具
基本工具
create_incident:创建新事件update_incident:更新现有事件search_records:使用文本查询搜索记录get_record:通过 sys_id 获取特定记录perform_query:针对 ServiceNow 执行查询add_comment:向事件添加评论(客户可见)add_work_notes:向事件添加工作注释(内部)
自然语言工具
natural_language_search:使用自然语言搜索记录(例如,“查找有关 SAP 的所有事件”)natural_language_update:使用自然语言更新记录(例如,“更新事件 INC0010001,并说明我正在处理此事”)update_script:更新 ServiceNow 脚本文件(脚本包含、业务规则等)
安装
来自 PyPI
来自源
用法
命令行
使用 Python 模块运行服务器:
或者使用环境变量:
Cline 中的配置
要将此 MCP 服务器与 Cline 一起使用,请将以下内容添加到您的 MCP 设置文件中:
**注意:**确保使用安装了mcp-server-servicenow包的 Python 可执行文件的完整路径。
自然语言示例
搜索记录
您可以使用自然语言查询来搜索记录:
更新记录
您可以使用自然语言命令更新记录:
管理脚本
您可以从本地文件更新 ServiceNow 脚本:
身份验证方法
服务器支持多种认证方式:
基本身份验证:用户名和密码
令牌认证:OAuth 令牌
OAuth 身份验证:客户端 ID、客户端密钥、用户名和密码
发展
先决条件
Python 3.8+
具有 API 访问权限的 ServiceNow 实例
设置开发环境
运行测试
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
分叉存储库
创建你的功能分支(
git checkout -b feature/amazing-feature)提交您的更改(
git commit -m 'Add some amazing feature')推送到分支(
git push origin feature/amazing-feature)打开拉取请求
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants to interact with n8n workflows through natural language, supporting actions like listing, creating, updating, executing and monitoring workflows.Last updated -1301,461MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.Last updated -3236
CodeAlive MCPofficial
-securityAlicense-qualityA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.Last updated -68MIT License- -securityFlicense-qualityA Model Context Protocol server that enables AI agents to interact with n8n workflows and automation tools through a standardized interface, allowing execution of workflows and access to n8n functions.Last updated -