servicenow-mcp
servicenow-mcp
ServiceNow 인시던트를 Table API를 통해 관리하는 MCP 서버입니다. 인시던트 생성, 읽기, 업데이트, 검색, 댓글 추가, 해결을 위한 도구를 제공합니다.
설정
의존성 설치:
uv sync.env.example을.env로 복사하고 자격 증명을 입력:cp .env.example .envSERVICENOW_INSTANCE: 인스턴스 이름만 입력 (예:dev12345.service-now.com의 경우dev12345)SERVICENOW_USERNAME/SERVICENOW_PASSWORD:incident테이블에 접근 권한이 있는 사용자의 기본 인증 자격 증명 (Table API를 통한 읽기/쓰기)
서버를 직접 실행하여 정상 시작 확인:
uv run servicenow-mcp
Related MCP server: servicenow-api
Claude Desktop / Claude Code와 함께 사용하기
연결 방법은 두 가지입니다. 서버를 사용하는 모든 사람이 하나의 ServiceNow 서비스 계정을 공유할지, 아니면 각자가 자신의 계정으로 인증할지에 따라 선택합니다. 전체 내용은 인증을 참조하세요.
옵션 A — stdio, 공유 서비스 계정
클라이언트가 서버를 하위 프로세스로 직접 실행합니다. 모든 도구 호출은 env를 통해 전달된 SERVICENOW_USERNAME / SERVICENOW_PASSWORD를 사용합니다.
{
"mcpServers": {
"servicenow": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/servicenow-mcp", "run", "servicenow-mcp"],
"env": {
"SERVICENOW_INSTANCE": "your-instance",
"SERVICENOW_USERNAME": "your-username",
"SERVICENOW_PASSWORD": "your-password"
}
}
}
}옵션 B — HTTP, 클라이언트별 자격 증명
서버를 한 번 실행하여 장기 실행 HTTP 프로세스로 유지합니다 (SERVICENOW_INSTANCE만 필요하며, 인증 헤더가 없는 요청을 위한 대체로 SERVICENOW_USERNAME/PASSWORD도 필요):
uv run servicenow-mcp --transport streamable-http --host 127.0.0.1 --port 8003그런 다음 .mcp.json에서 이를 가리키고 자신의 ServiceNow 로그인을 HTTP Basic Auth 헤더로 보냅니다. 이것이 연결을 "클라이언트 수준"으로 만드는 핵심입니다. 자격 증명은 서버가 아닌 클라이언트 설정에 저장됩니다:
{
"mcpServers": {
"servicenow": {
"type": "http",
"url": "http://127.0.0.1:8003/mcp",
"headers": {
"Authorization": "Basic <base64 of your-username:your-password>"
}
}
}
}터미널에서 base64 값을 생성합니다 (echo의 -n이 앞 공백을 방지함):
echo -n "your-username:your-password" | base64.mcp.json은 .env와 달리 .gitignore에 포함되지 않습니다. 이 디렉토리가 공유/git 저장소가 될 경우 실제 자격 증명을 커밋하지 마세요.
도구
create_incident— 새 인시던트 생성get_incident— 번호(예:INC0010023) 또는 sys_id로 조회update_incident— 임의 필드 업데이트search_incidents— ServiceNow 인코딩 쿼리(sysparm_query)로 검색add_comment— 고객이 볼 수 있는 댓글 또는 내부 작업 메모 추가resolve_incident— 상태를 해결됨으로 설정하고 종료 메모/코드 추가
인증
인증은 기본 인증(사용자 이름/비밀번호)입니다. 자격 증명의 출처는 전송 방식에 따라 다릅니다:
stdio: 항상
.env의 공유SERVICENOW_USERNAME/SERVICENOW_PASSWORD를 사용합니다.HTTP (
sse/streamable-http): 각 요청은 표준 HTTP Basic Auth 헤더를 보내 자신의 ServiceNow 사용자로 인증할 수 있습니다:Authorization: Basic base64(username:password)SERVICENOW_INSTANCE는 서버 측에 유지됩니다(모든 클라이언트에 대해 하나의 인스턴스). 그러나 사용자 이름/비밀번호는 클라이언트별로 다릅니다. 따라서search_incidents결과,caller_id확인 등은 하나의 공유 서비스 계정 대신 해당 개별 사용자의 ServiceNow 권한을 반영합니다. 요청에Authorization헤더가 없으면.env의 공유SERVICENOW_USERNAME/SERVICENOW_PASSWORD로 대체됩니다.
나중에 OAuth 2.0이 필요하면 src/servicenow_mcp/client.py의 requests.Session.auth 설정을 토큰 기반 흐름으로 교체하세요. 나머지 클라이언트는 인증 방식에 영향을 받지 않습니다.
참고 사항
인시던트 테이블의
state필드는 숫자입니다 (예:6= 해결됨,7= 종료됨). 인스턴스에서 인시던트 상태를 사용자 정의한 경우 값이 다를 수 있습니다.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that enables AI assistants to interact with ServiceNow instances, allowing script execution, data querying, ATF tests, and log tailing through natural language commands.8736413MIT
- Alicense-qualityBmaintenanceMCP server enabling interaction with ServiceNow API for managing incidents, CMDB, change management, and other ServiceNow operations via natural language.19MIT
- FlicenseAqualityCmaintenanceA production-ready MCP server that turns any MCP-compatible AI assistant into an AI-powered ServiceNow Incident Management Assistant, exposing incidents, users, CMDB records, and knowledge articles through validated tools.12
- Alicense-qualityDmaintenanceMCP server to interact with ServiceNow instances, enabling ITSM, CMDB, workflow, and knowledge search operations.MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
MCP server for generating rough-draft project plans from natural-language prompts.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/siddhardhan/servicenow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server