- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
06-26-2025 09:42 AM - edited 06-27-2025 12:28 AM
Configure MCP Client in ServiceNow
Pre-requisites
Midserver to run the mcp client, mcp server and ollama service to access llama 3.2 model
Install ServiceNow spoke which has the action to execute mcp client
Github repo which has required powershell scripts : anilvaranasi/nowmcpclientfiles
Github repo for scoped app : anilvaranasi/nowmcpclient
Midserver configuration
Install python to run MCP server and client.
Install Ollama to run llama3.2 model by running the command
Download files from gitrepo anilvaranasi/nowmcpclientfiles and upload to midserver in folder C:\mcp
Ollama server
Ensure that Ollama is up and running and it has llama3.2 model
ollama run llama3.2
MCP Server
Test MCP server by running the command python c:\mcp\server.py
MCP Client
Once MCP server is up and running and when it being called by MCP client by running the command python langchain_client2.py
ServiceNow configuration
Scoped app
MCP client is scoped app that contains required code base
ServiceNow Spoke Action
MCP Client
MCP client is called via Power shell action from ServiceNow.
Script output is sent as response to action
Virtual agent topic
Testing
Test the spoke
Test from action to check for connectivity and execution
MCP server
Test virtual agent
References:
https://medium.com/the-ai-forum/understanding-the-mcp-workflow-building-a-local-mcp-client-using-oll... -> Original source code is taken from here
- 5,400 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Very interesting, thanks for sharing.