Fluent MCP Server
This MCP server lets AI agents manage the full ServiceNow Fluent SDK app lifecycle and query ServiceNow metadata/instance data.
Initialize or convert Fluent apps; build, deploy, clean, pack, and download app metadata/dependencies.
Transform XML/instance records into Fluent source and run read-only Table REST queries.
Run CI/CD app install/publish/rollback and ATF test run/watch/result operations.
Look up SDK docs plus API specs, authoring instructions, and code snippets for ServiceNow metadata types.
Check authentication status and inspect SDK version/help.
Use bundled skills for Fluent CLI workflows and security, general, performance, and domain-separation reviews.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fluent MCP Server Create a new Fluent app in ~/my-app to manage employee time off"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fluent MCP Server
An MCP server and AI skill suite that brings ServiceNow Fluent SDK (@servicenow/sdk) capabilities, API specifications, code snippets, and security reviews to AI-assisted development environments.
Built for @servicenow/sdk@v4.14.2.
Key Features
16 MCP Tools — 14 ServiceNow SDK CLI command tools (
sdk_info,init,build,deploy,transform,dependencies,download,clean,pack,explain,query,cicd_fluent_app,cicd_fluent_test,fluent_exec_script) plus 2 knowledge/auth tools (get_fluent_knowledge,check_auth_status).76 ServiceNow Metadata Types — Packaged API specs (
sn-spec://), authoring instructions (sn-instruct://), runnable snippets (sn-snippet://), and workflow prompts (coding_in_fluent,create_custom_ui).AI Agent Skills — Built-in skills (
fluent-cli,fluent-security-review,fluent-general-review,fluent-perf-review, andfluent-domain-separation-review) installable as a plugin for Claude Code, Codex, Copilot, and other skill-enabled agents.Lazy Auto-Authentication — Resolves and caches an SDK auth profile matching
SN_INSTANCE_URLon first use.Explicit Working Directory Resolution — Resolves project paths in strict order:
workingDirectoryargument → session (init_fluent_app) →FLUENT_MCP_WORKING_DIR→ actionable error. Never guesses fromprocess.cwd().Dual-Era MCP Protocol — Serves both current and legacy MCP protocol revisions over stdio from a single handler set, with zero server-initiated requests.
Related MCP server: ServiceNow MCP Server
MCP Setup
Requirements: Node.js >=22.23.2 and npm >=10.9.8.
Add @modesty/fluent-mcp to your MCP client configuration:
{
"mcpServers": {
"fluent-mcp": {
"command": "npx",
"args": ["-y", "@modesty/fluent-mcp"],
"env": {
"FLUENT_MCP_WORKING_DIR": "/absolute/path/to/your/fluent-project",
"SN_INSTANCE_URL": "https://your-instance.service-now.com",
"SN_AUTH_TYPE": "oauth"
}
}
}
}Client Config Locations:
Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.jsonClaude Code CLI:
claude mcp add fluent-mcp -- npx -y @modesty/fluent-mcpVS Code Copilot:
.vscode/mcp.json(uses"mcp": { "servers": { ... } }instead of"mcpServers")Cursor / Windsurf / Gemini CLI: Add under
mcpServersin your client's MCP settings file
Environment Variables
Variable | Description | Default |
| Fallback absolute path to your Fluent project | — |
| ServiceNow instance URL for automatic auth profile lookup. A matching profile is passed per call and never made your CLI default; the server never adds, deletes or selects a profile | — |
|
|
|
| Minimum stderr log level ( |
|
| Operator override for CLI command timeout, in ms, digits only, at most | Per-tool |
| Set to | — |
| Directory of the SDK's encrypted profile store |
|
| Where the SDK gets the |
|
| With | — |
Authentication Tip: The server only reads your auth profiles. To register an instance profile, run in a terminal:
npx @servicenow/sdk auth --add <instance-url> --type <basic|oauth> --alias <alias>auth --addmakes the new profile your CLI default; runnpx @servicenow/sdk auth --use <previous alias>afterwards to keep the old one. Since@servicenow/sdk4.14.0, profiles are stored encrypted incredentials.encwith only the key in the OS keychain (or inSN_SDK_ENCRYPTION_KEYwhenSN_SDK_KEY_SOURCE=env). The first auth lookup migrates existing keychain profiles silently; afterwards, profiles added with an oldernow-sdkare not visible to this server. Ifcheck_auth_statusreports thatcredentials.enccould not be read, verifySN_SDK_CREDENTIALS_DIRand the server account’s permissions to read the file and traverse its parent directories. Check whether the store was created withSN_SDK_KEY_SOURCE=envandSN_SDK_ENCRYPTION_KEY(configure both in your MCP client and restart the server), and ensure the OS keyring is unlocked before resetting. Treatnow-sdk auth --delete allas a last resort only after confirming your terminal resolves the same store path, because it removescredentials.encin that directory plus the shared OS keyring key and legacy keychain entry. Do not reset for any other store error: a file written by a newernow-sdkneeds that newer SDK, and a keyring write failure needs the OS keyring unlocked (then restart the server) or a fresh env-backed store with profiles re-added. This server bundles@servicenow/sdk4.14.2, which writes a newly created encryption key (first setup, or after a reset) in a format 4.14.0 cannot read. If another project on the same machine pinsnow-sdk4.14.0, upgrade it to 4.14.2 or later; otherwise 4.14.0 reports the store unreadable and offers a reset that deletes your saved profiles. WithSN_SDK_KEY_SOURCE=env, a missing, malformed or wrong key is reported and nothing is reset: setSN_SDK_ENCRYPTION_KEYto the original key for an env-backed store. For a store created with the OS keyring, restoreSN_SDK_KEY_SOURCE=keyring, unlock the original keyring, and restart the MCP server. Generated init and dependencies commands carry the server’s key provider and configured store directory. For the env provider, export the matching key in the terminal that runs the command. For headless CI/CD pipelines, setSN_SDK_NODE_ENV=SN_SDK_CI_INSTALLalong withSN_SDK_INSTANCE_URLandSN_SDK_USER/SN_SDK_USER_PWDorSN_SDK_OAUTH_CLIENT_ID/SN_SDK_OAUTH_CLIENT_SECRET.
MCPB Bundle (Optional)
Run npm run bundle to build a self-contained fluent-mcp-<version>.mcpb archive with dist/, res/, and production dependencies for MCPB-compatible desktop hosts. The dependencies are resolved fresh from the public npm registry, the same way an npm install of the package resolves them; an inherited registry setting, scoped ones included, is overridden, and the bundle fails if any package in its lockfile came from elsewhere, MCPB drops *.d.ts and package-lock.json by default, so the script re-includes the SDK's declarations, which a Fluent build type-checks against, and the lockfile. After packing it unpacks the archive and fails, deleting the bundle, unless the lockfile is there and the bundled SDK can build a fixture project that has no SDK of its own.
Skills (fluent-skillset)
This repository ships standalone AI agent skills under skills/ packaged as the fluent-skillset plugin.
Skill Plugin Installation
Agent / Tool | Installation |
Claude Code | Run |
GitHub Copilot | Run |
Codex | Run |
Cursor | Settings ( |
Grok | Run |
Windsurf / Other Agents | Prompt the agent: |
Available Skills & Intended Usage
Skill | Intended Usage |
Fluent App Development & Live Instance Queries (No MCP Required). Guides the agent through | |
ServiceNow App Security Review. Audits both Fluent ( | |
ServiceNow App General Best-Practice Review. Audits both Fluent ( | |
ServiceNow App Performance Review. Audits both Fluent ( | |
ServiceNow App Domain Separation / MSP Readiness Review. Specifically for apps that must run on domain-separated (MSP / multi-tenant) instances. Audits Fluent and classic XML apps against all 10 MSP & Domain Separation checks ( |
Available Tools (18)
SDK Command Tools (14)
Tool | Description | Key Parameters |
| Get SDK version ( |
|
| Look up Fluent SDK docs for any API class, guide, or tag; with no exact match, returns the closest topics ranked by relevance (no project required) |
|
| Initialize a new Fluent app or convert an existing app (non-interactive) |
|
| Build the Fluent application package |
|
| Deploy/install the built package to a ServiceNow instance |
|
| Transform local XML or instance records into Fluent |
|
| Generate the shell command to download application dependencies and script/table type definitions |
|
| Download application metadata from an instance |
|
| Clean build output directory |
|
| Zip built application into an installable artifact |
|
| Read-only Table REST query against an instance (returns JSON envelope); needs no Fluent project |
|
| Install, publish, or rollback an app via the |
|
| Run, watch, or fetch results/logs for ATF test suites and tests via |
|
| Run a server-side script on the instance like Scripts - Background ( |
|
Knowledge & Authentication Tools (2)
Tool | Description | Key Parameters |
| Get the Fluent API specification ( |
|
| Validate and return the current ServiceNow instance authentication status | None |
Resources & Prompts
Type | URI / Name | Purpose |
API Specs |
| TypeScript API signatures and field schemas |
Instructions |
| Best practices, constraints, and common pitfalls |
Code Snippets |
| Practical, build-validated code examples |
Prompts |
| End-to-end authoring and custom UI guides |
Supported Metadata Types (76)
Core (26):
acl,application-menu,business-rule,client-script,cross-scope-privilege,data-policy,field-style,form,import-set,instance-scan,interceptor,list,property,role,scheduled-script,script-action,script-include,scripted-rest,sla,state-model,table,ui-action,ui-macro,ui-page,ui-policy,user-preferenceTable & View (3):
column,column-generic,database-viewService Catalog (6):
catalog-item,catalog-item-record-producer,catalog-ui-policy,catalog-client-script,catalog-variable,variable-setEmail (2):
email-notification,inbound-email-actionAutomation & Workflow (3):
flow,custom-action,playbookIntegration & Connections (6):
alias,alias-template,retry-policy,rest-message,data-lookup,graphql-apiAI & Now Assist (3):
ai-agent,ai-agent-workflow,now-assist-skill-configService Portal (3):
service-portal,sp-header-footer,sp-page-route-mapWorkspace & Analytics (2):
workspace,dashboardAssessments (2):
assessment,risk-assessmentATF & Testing (20):
atf,atf-appnav,atf-catalog-action,atf-catalog-validation,atf-catalog-variable,atf-email,atf-form,atf-form-action,atf-form-declarative-action,atf-form-field,atf-form-sp,atf-list,atf-reporting,atf-rest-api,atf-rest-assert-payload,atf-server,atf-server-catalog-item,atf-server-record,atf-ui-test-script,test-suite
Development
npm ci # Install dependencies
npm run build # Build production bundle to dist/
npm run dev # Build development bundle and start server
npm test # Run full test suite (node:test)
npm run lint # Lint TypeScript sources
npm run typecheck # Type-check src/ and test/ (npm run typecheck:test)
npm run validate:specs # Validate res/spec/*.md against SDK types
npm run validate:instructs # Validate res/instruct/*.md against SDK explain corpus
npm run validate:snippets # Compile all res/snippet/*.md via now-sdk build
npm run inspect # Launch MCP Inspector against dist/index.js
npm run bundle # Package self-contained .mcpb bundleLicense
MIT
Available Tools
17 toolsbuild_fluent_appAIdempotent
Build a Fluent (ServiceNow SDK) application package from source code. Requires a valid Fluent project directory with now.config.json. Run after init_fluent_app and before deploy_fluent_app. Does NOT require instance authentication.
Inputs: debug, workingDirectory.
check_auth_statusARead-onlyIdempotent
Check current ServiceNow authentication status. Lazily validates configured auth once and returns JSON including status, profile alias, instance host, auth type, and any required user action. Call this before commands that require authentication (deploy_fluent_app, fluent_transform, download_fluent_dependencies, download_fluent_app) to verify credentials are configured.
Inputs: no named parameters. Returns: host, alias, status, message, +4 more
cicd_fluent_appADestructive
Run a ServiceNow app-repo CI/CD operation via the sn_cicd API (SDK v4.10.0+): install, publish, or rollback an application on an instance. CHANGES INSTANCE STATE. Identify the app with either scope or appSysId; inside a Fluent project both appSysId and appVersion default from now.config.json/package.json, and outside one both must be passed explicitly. appVersion is always required for rollback. Requires instance authentication (auto-injected from session, or pass auth explicitly).
Inputs: action (required), auth, wait, debug, +10 more.
cicd_fluent_testADestructive
Run or inspect ServiceNow ATF tests through the sn_cicd API (SDK v4.10.0+). Set target to "testsuite" or "test" and action to "run" (start it), "watch" (follow a progressId from a previous run), or "result" (fetch a resultId). Identify a suite by testSuiteSysId or testSuiteName, a test by testSysId or testName. action="run" executes real ATF steps on the instance and the records those steps touch change; "watch" and "result" only read. No Fluent project required. Requires instance authentication (auto-injected from session, or pass auth explicitly).
Inputs: action (required), target (required), auth, wait, +17 more.
clean_fluent_appADestructiveIdempotent
Delete the build output directory of a Fluent (ServiceNow SDK) application. This is a destructive operation that removes all compiled artifacts. Run build_fluent_app afterward to regenerate. Does NOT require authentication.
Inputs: debug, source, workingDirectory.
deploy_fluent_appADestructive
Deploy a built Fluent (ServiceNow SDK) application to a ServiceNow instance. Requires a prior build via build_fluent_app and valid instance authentication (auto-injected from session, or pass auth explicitly). Use skipFlowActivation to prevent auto-publishing of flows and subflows during deployment.
Inputs: auth, debug, workingDirectory, skipFlowActivation.
download_fluent_appADestructive
Download application metadata from a ServiceNow instance into a local directory. Includes metadata deployed to the instance that may not exist locally. The directory argument specifies where to expand the application. Use incremental mode to download only changes since the last download. Requires instance authentication (auto-injected from session).
Inputs: directory (required), auth, debug, source, +2 more.
download_fluent_dependenciesA
Download configured dependencies from now.config.json and TypeScript type definitions for use in a Fluent application. Requires instance authentication (auto-injected from session, or pass auth explicitly). Supports pulling type definitions for tables and roles outside application scope via dependencies.global configuration. Run this after init_fluent_app to set up type definitions before development.
Inputs: auth, debug, workingDirectory.
explain_fluent_apiARead-onlyIdempotent
Look up Fluent SDK documentation for any API or guide. Accepts a topic name (e.g., "BusinessRule", "Acl") or a keyword/tag (e.g., "flow", "atf"). Set list=true to enumerate available topics (optionally combined with topic to filter). Set peek=true for a brief summary. Set format="raw" for plain markdown. Read-only; no authentication or active Fluent project required. Use get-api-spec for metadata-type specifications and get-snippet for code examples.
Inputs: list, peek, debug, topic, +2 more.
fluent_transformADestructive
Download and convert XML metadata records from a ServiceNow instance or local path into Fluent source code. Requires instance authentication when downloading from instance (auto-injected from session, or pass auth explicitly). Use from for local XML files, or omit to pull from instance. Use table (SDK v4.7.0+) to transform by table hierarchy, optionally with id to target a specific record and its relationships.
Inputs: id, auth, from, debug, +3 more.
get-api-specARead-onlyIdempotent
Fetch the Fluent API specification for a ServiceNow metadata type (e.g., "business-rule", "script-include"). Call without arguments to list all available metadata types. Use this to understand the Fluent API for a specific metadata type before writing code. For code examples, use get-snippet instead. For best practices, use get-instruct instead.
Inputs: metadataType. Returns: content, snippetId, metadataType, resourceType, +2 more
get-instructARead-onlyIdempotent
Fetch instructions and best practices for creating a ServiceNow metadata type using the Fluent API (e.g., "business-rule", "script-include"). Provides guidance on patterns, conventions, and common pitfalls. For API specifications, use get-api-spec. For code examples, use get-snippet.
Inputs: metadataType (required). Returns: content, snippetId, metadataType, resourceType, +2 more
get-snippetARead-onlyIdempotent
Fetch a Fluent code snippet for a ServiceNow metadata type (e.g., "business-rule", "script-include"). Returns the first available snippet when called without an id. Provides additional snippet ids if more are available. For API specifications, use get-api-spec instead. For best practices, use get-instruct instead.
Inputs: metadataType (required), id. Returns: content, snippetId, metadataType, resourceType, +2 more
init_fluent_appA
Initialize a new Fluent (ServiceNow SDK) application or convert an existing scoped application. Set intent to "creation" for a new app (requires appName, packageName, scopeName, template) or "conversion" to convert from an instance sys_id or local directory (requires from, and auth for instance conversion). The workingDirectory must be an empty directory. After init, use build_fluent_app to compile.
Inputs: workingDirectory (required), auth, from, debug, +5 more.
pack_fluent_appAIdempotent
Package a built Fluent (ServiceNow SDK) application into a zip artifact for installation. Requires a prior build via build_fluent_app. The output zip can be used for manual installation on a ServiceNow instance. Does NOT require authentication.
Inputs: debug, source, workingDirectory.
query_fluent_recordsARead-only
Run a read-only query against a ServiceNow table via the Table REST API (SDK v4.8.0+). Returns matching records as a JSON envelope. Requires instance authentication (auto-injected from session, or pass auth explicitly). Provide table and an encoded query (e.g. "active=true^priority<=2").
Inputs: query (required), table (required), auth, view, +12 more.
sdk_infoARead-onlyIdempotent
Get Fluent (ServiceNow SDK) version or help information. Use -v to check the installed SDK version, or -h for general help or help on a specific command (e.g., flag: "-h", command: "build"). Does NOT require authentication or a Fluent project directory.
Inputs: flag (required), command.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most lifecycle tools are clearly distinct (init, build, pack, deploy, clean), but the documentation/help cluster—explain_fluent_api, get-api-spec, get-instruct, get-snippet, and sdk_info—has overlapping purposes that could cause misselection. The descriptions do include cross-references, which helps, but an agent still has to choose among several similar look-up tools.
The core lifecycle tools mostly follow a verb_fluent_noun pattern (build_fluent_app, deploy_fluent_app, download_fluent_app), but conventions are mixed across the set: several get-* tools use hyphens with no 'fluent' component, fluent_transform reverses the pattern, check_auth_status omits 'fluent', and sdk_info is a bare noun. This mixing of underscore, hyphen, and noun-only names is inconsistent.
At 17 tools, this sits slightly above the ideal 3-15 range, but the server covers a broad domain: app initialization, building, packaging, deployment, downloads, transforms, CI/CD, testing, authentication, and documentation. The count feels justified by the scope rather than padded.
The tool surface covers the full Fluent/ServiceNow app development lifecycle: init, dependencies, build, pack, deploy, clean, download, transform, query, CI/CD, test, and auth. There are no obvious dead ends, and documentation/help tools round out the workflow. The set appears complete for its stated domain.
Maintenance
Related MCP Connectors
Manage tickets, run agents and workflows, query tables, and search workspace knowledge.
Connect AI agents to ProductNow's context engine to search, create, review, and act.
Search 16,000+ API operations and 95 built tools by need, then call any of them by name
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables natural language interaction with ServiceNow instances for managing incidents, changes, CMDB, service catalog, users, groups, and knowledge base via MCP.4131 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants and development tools to interact with ServiceNow instances through a standardized interface, supporting comprehensive API coverage for incident, change, CMDB, and more.MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to interact with ServiceNow instances through the ServiceNow API, supporting record management, service catalog operations, change management, and more via natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with ServiceNow instances for data retrieval, record management, and workflow execution via the ServiceNow API.MIT