Fluent MCP Server
Click on "Install 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 ServerCreate 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 that brings ServiceNow Fluent SDK capabilities to AI-assisted development environments. Enables natural language interaction with ServiceNow SDK commands, API specifications, code snippets, and development resources.
Built for @servicenow/sdk@v4.9.0.
Note : Since v0.6.0 the server speaks both MCP@2026-07-28 and MCP@2025-11-25 from one handler set — the stdio entry inspects the opening message and serves whichever era the client opens with. v0.5.1 is the last release built on the v1 MCP SDK (2025-11-25 only).
Key Features
SDK Command Tools -
sdk_infoplus ServiceNow SDK command tools forinit,build,install,dependencies,transform,download,clean,pack,explain, andqueryRich Resources - API specifications, instructions, and code snippets for 65 ServiceNow metadata types
API Documentation Lookup -
explain_fluent_apireturns SDK docs for any Fluent API or guide — no project requiredLazy Auto-Authentication - Detects and caches an auth profile only when an auth-requiring command or
check_auth_statusneeds itExplicit Project Context - Resolves each project command from its
workingDirectoryargument, the initialized session, orFLUENT_MCP_WORKING_DIR, then fails with actionable guidance instead of guessingMCPB Bundle - Builds a self-contained
.mcpbdistribution with the server, resources, and production dependenciesClient-Friendly Schemas - Optional inputs advertise their canonical value types while the enforced schema accepts
nullas an omitted-value compatibility form
This MCP server implements the Model Context Protocol specification with the following capabilities:
Core
Resources - 300+ resources across 65 ServiceNow metadata types (API specs, instructions, snippets, prompts)
Tools - 11 ServiceNow SDK command tools plus 4 resource/auth tools (15 total), with full parameter validation. Read tools (
get-api-spec,get-snippet,get-instruct,check_auth_status) declare anoutputSchemaand returnstructuredContentfor programmatic consumersPrompts - Development workflow templates for common ServiceNow tasks (
coding_in_fluent,create_custom_ui)Logging & Progress - Structured logs are written to stderr; progress notifications are sent for long-running commands (any command with a 30s or longer timeout — deploy, build, transform, download, dependencies, query, pack) when the client supplies a progress token
Project Context & Sessions
The server requires no client capabilities and issues no server→client requests: Roots, Sampling, and Elicitation are not used (MCP 2026-07-28 removed server-initiated requests, and all input arrives with the tools/call arguments). Automatic workspace detection through Roots is gone for every client, including MCPB hosts.
Session Management - Tracks the directory established by
init_fluent_appfor subsequent project commandsWorking Directory Resolution -
workingDirectorytool argument → initialized session →FLUENT_MCP_WORKING_DIR→ actionable failure. Accepted paths are non-empty absolute paths other than the filesystem root. The server never guesses from its process cwd or installed package directory. Clients must passworkingDirectoryor configureFLUENT_MCP_WORKING_DIRwhen no session directory exists.Non-interactive
init_fluent_app- Intent-specific arguments must be supplied with the call (creation:appName,packageName,scopeName,template; conversion:from); a missing argument fails with an error naming exactly what is absent. The tool does not prompt or elicit missing values.Error Handling - Comprehensive error messages with actionable guidance
Type Safety - Full TypeScript implementation with strict typing
Protocol Behavior
Dual-era stdio: a 2026-07-28 opening (per-request
_metaenvelope,server/discover) and a 2025-11-25initializeare both served from the same handler set; the SDK entry point pins one era per connection.The six cacheable results of 2026-07-28 (
tools/list,prompts/list,resources/list,resources/templates/list,resources/read,server/discover) advertisettlMs: 3600000/cacheScope: 'public'— everything they return is static for the process lifetime.The server advertises instructions during initialization;
tools/listis a side-effect-free read that returns tools in deterministic name order.Optional tool arguments advertise their canonical JSON types so clients render normal form fields. The enforced call schema additionally accepts
nullas an omitted value;workingDirectoryalso treats an empty string as omitted before applying the fallback chain.Structured logs go to stderr, keeping stdout reserved for MCP protocol traffic. Runtime
logging/setLevelandnotifications/messageare not used.Resource misses use the standard JSON-RPC invalid-params code (
-32602).
Related MCP server: servicenow-mcp-server
Quick Start
# Test with MCP Inspector
npx @modelcontextprotocol/inspector npx @modesty/fluent-mcp
# Build the optional self-contained MCPB distribution
npm run bundle
# Or use in your MCP client (see Configuration below)MCPB Distribution
The optional npm run bundle command produces fluent-mcp-<version>.mcpb. The bundle contains dist/, res/, and production dependencies, and its manifest.json declares all 15 tools. MCPB hosts expose these user-configurable values to the server:
FLUENT_MCP_WORKING_DIR— optional default project directory; otherwise passworkingDirectoryon project-aware tool callsSN_INSTANCE_URL— optional instance URL for lazy authentication validationSN_AUTH_TYPE— authentication type (basicoroauth, defaultoauth)
The npm package remains the primary distribution channel. MCPB does not restore Roots-based workspace detection or interactive init_fluent_app prompting.
Example prompt:
Create a new Fluent app in ~/projects/time-off-tracker to manage employee PTO requestsAvailable Tools
SDK Command Tools (11)
Tool | Description | Key Parameters |
| Get SDK version or help |
|
| Look up Fluent SDK documentation for any API or guide. No Fluent project required. |
|
| Initialize or convert a ServiceNow app. Non-interactive: missing intent-specific arguments fail with an error naming them. |
|
| Build the application |
|
| Deploy to a ServiceNow instance. SDK flow activation can be skipped. |
|
| Convert XML or instance metadata to Fluent TypeScript. Local paths do not require auth; instance transforms do. |
|
| Download dependencies and type definitions |
|
| Download metadata from an instance |
|
| Clean output directory |
|
| Create an installable artifact |
|
| Read-only Table REST query against an instance; returns a JSON envelope |
|
Resource and Authentication Tools (4)
Tool | Description | Key Parameters |
| Get an API specification or list all available metadata types |
|
| Get a Fluent code snippet; without |
|
| Get authoring guidance, conventions, and common pitfalls for a metadata type |
|
| Lazily validate configured ServiceNow authentication and return structured status information | No arguments |
Note: Authentication is validated lazily on the first auth-requiring command or
check_auth_status, then cached for the session. Useinit_fluent_appto establish project context, passworkingDirectoryper call, or setFLUENT_MCP_WORKING_DIR. Any optional argument sent asnullis treated as omitted;workingDirectoryalso treats an empty string as omitted and falls through to the next source.
Looking up Fluent APIs with explain_fluent_api
explain_fluent_api wraps now-sdk explain and returns SDK documentation for any Fluent API class or topic guide. It works from any directory — no Fluent project required.
Invocation | Result |
| Full API reference for |
| Brief summary of |
| Full API reference as plain markdown (good for piping into other tools) |
| Full topic index (all APIs and guides) |
| Topic index filtered to entries matching |
topic matches an API name (e.g. BusinessRule, Acl), a guide name (e.g. business-rule-guide, atf-guide), or a tag keyword (e.g. flow, atf, email). The SDK resolves by exact name first, then by tag.
Resources
Standardized URI patterns following MCP specification:
Resource Type | URI Pattern | Example | Purpose |
API Specs |
|
| API documentation and parameters |
Instructions |
|
| Best practices and guidance |
Code Snippets |
|
| Practical code examples |
Prompts |
|
| Development guides |
Supported Metadata Types
65 metadata types across the following categories:
Core Types: acl, application-menu, business-rule, client-script, cross-scope-privilege, data-policy, form, import-set, instance-scan, list, property, role, scheduled-script, script-action, script-include, scripted-rest, sla, table, ui-action, ui-page, ui-policy, user-preference
Table Types: column, column-generic
Service Catalog: catalog-item, catalog-item-record-producer, catalog-ui-policy, catalog-client-script, catalog-variable, variable-set
Email: email-notification, inbound-email-action
Automation & Workflow: flow, custom-action, playbook
Integration & Connections: alias, alias-template, retry-policy, rest-message, data-lookup
AI & Now Assist: ai-agent, ai-agent-workflow, now-assist-skill-config
Service Portal: service-portal, sp-header-footer, sp-page-route-map
Workspace & Analytics: workspace, dashboard
ATF (Automated Test Framework): 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-reporting, atf-rest-api, atf-rest-assert-payload, atf-server, atf-server-catalog-item, atf-server-record, atf-ui-test-script
What's new in 4.9.0
This release of the MCP server tracks @servicenow/sdk 4.9.0 — a maintenance and bug-fix release (Flow, ClientScript, ImportSet, SLA transform/build reliability) with select authoring-surface additions:
New metadata type:
atf-ui-test-script— theatf.uiTestScript.runTest()ATF step runs a TestingLibrary test body in the client test runner to test custom UI components (Angular/React widgets, embedded SPAs, custom workspaces,now-*web components) that the standardatf.form.*/atf.catalog.*steps cannot reach.Multi-language choice labels — a choice field's
choicesvalue may be an array ofChoiceConfigobjects, each with alanguage(BCP 47) key, producing one translatedsys_choicerecord per language.protectionPolicyon AI Agent & AI Agentic Workflow —AiAgentandAiAgenticWorkflowacceptprotectionPolicy: 'read' | 'protected'for post-install access control.Role.federatedId— optional identifier to match a role to an externally federated role during identity federation.Table index platform columns — a table
indexentry'selementmay reference platform default columns (for example,sys_created_on).Now Assist Skill Kit providers — new LLM providers selectable by name:
Now LLM LTS Generic,Google Cloud Vertex AI,Amazon Bedrock.
Source-of-truth note: two release-note claims are not corroborated by the installed package and were treated as corrections — Form
table_field.fieldis documented as a schema column name (not loosened to "any string"), and the four named NASK model strings appear nowhere in the package (modelis a free string). See.mosey/upgrade-sdk-4.9.0.md.
Previously (4.8.x)
This release of the MCP server tracks @servicenow/sdk 4.8.0 and adds support for the following Fluent APIs and SDK enhancements:
New metadata type:
playbook— thePlaybookDefinitionAPI (sys_pd_process_definition, from@servicenow/sdk/automation) for guided, record-driven multi-step processes with lanes, activities, triggers, and inputs/outputs.New metadata type:
rest-message— theRestMessageAPI (sys_rest_message) for outbound HTTP integrations with shared auth/headers and callable functions.New metadata types:
aliasandalias-template— theAlias(sys_alias) andAliasTemplate(sys_alias_templates) APIs for Connection & Credential aliases and reusable connection-setup templates.New metadata type:
retry-policy— theRetryPolicyAPI (sys_retry_policy) controlling transient-failure handling for connections (fixed-interval, exponential-backoff, orRetry-After).New metadata type:
data-lookup— theDataLookupAPI (dl_definition) that auto-copies field values from a matcher table to a source record.Declarative deletion (
Now.del()) — top-level statement to remove records by coalesce keys or sys_id.Type enhancements —
$overrideonDataPolicy/UserPreference;$meta.installMethodonRecord/Acl/Alias/UserPreference; ACLfieldaccepts known field names, system columns, or'*';TableaccessibleFromnow defaults to'public'.New CLI tool —
query_fluent_recordswrapsnow-sdk queryfor read-only Table REST queries (JSON envelope output).
Previously (4.7.x)
This release of the MCP server tracked @servicenow/sdk 4.7.x and added support for the following Fluent APIs and SDK enhancements:
New metadata type:
data-policy— theDataPolicyAPI (sys_data_policy2) for server-side mandatory/read-only field enforcement that cannot be bypassed via API, import, or web service.Flow error handling & parallelism —
wfa.flowLogic.tryCatch,wfa.flowLogic.doInParallel, andwfa.flowLogic.appendToFlowVariables(append toArray.Objectflow variables).Flow stages — declare
stageswithFlowStage({ label, value, … })and activate them in the body viawfa.stage(...)for progress tracking.Table augments — add columns to an existing platform/cross-scope table via
Table({ augments: '<table>', schema }); added columns must use the current app's ownership prefix:<scope>_in a named custom scope (for example,x_acme_), oru_in global and Store-app contexts.AI Agent — new
agentDescriptor;dataAccessacceptsroleMap(role names) orroleList(role sys_ids).NASK —
securityControlsacceptsroleMap(role names) alongsideroleRestrictions(role sys_ids).Universal field override (
$override) — escape hatch on Fluent constructors to set unmodeled columns by DB column name.Protection policy —
protectionPolicydocumented onsys_policy-backed APIs (Action, Subflow, business rules, scripted REST, etc.).CLI —
fluent_transformgains--table/--id(transform by table hierarchy);initgains thetypescript.vuetemplate; OAuthclient_credentialsfor CI/CD viaSN_SDK_*env vars (see Configuration).MCP — read tools now return
structuredContent(with declaredoutputSchema); long-running commands emit progress notifications.
Previously (4.6.0)
Added custom-action, inbound-email-action, sp-header-footer, and sp-page-route-map metadata types; the declarative Form API; subflow-of-subflow and custom actions in flows; AIAF auto-ACL generation; NASK output/input-type enhancements; Table dictionary overrides; and a project-free explain command with tag search, --list, --peek, and --format=raw.
Configuration
Requirements: Node.js 20.18.0+, npm 11.4.1+, @servicenow/sdk 4.9.0
MCP Client Setup
Add to your MCP client configuration file:
{
"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": "basic",
"SN_USER_NAME": "local-username",
"SN_PASSWORD": "local-password"
}
}
}
}Client-Specific Locations:
Claude Desktop / macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonVSCode Copilot:
.vscode/mcp.json(use Command Palette:MCP: Add Server...)Cursor: Settings → Features → MCP Settings
Windsurf: Settings → Cascade → MCP Servers → View raw config
Gemini CLI:
~/.gemini/settings.json
VSCode note: For VSCode, the JSON structure uses
"mcp": { "servers": { ... } }instead of"mcpServers".
Environment Variables:
Variable | Description | Default |
| Absolute Fluent project path used after the per-call and initialized-session sources; when it is also absent, project commands fail with actionable guidance | - |
| ServiceNow instance URL for auto-auth validation | - |
| Authentication method: |
|
| Username for basic auth (informational) | - |
| Password for basic auth (informational) | - |
| Minimum stderr log severity ( |
|
Note: On the first auth-requiring command (or
check_auth_status), the server detects an existing auth profile matchingSN_INSTANCE_URL, stores it in the session, and auto-injects it. Concurrent first calls share one validation promise. A new profile is added automatically only when setup can complete non-interactively (basic auth withSN_USER_NAME/SN_USERNAME+SN_PASSWORD); otherwise the server emits a single notice with the manualauth --addcommand to run.
Logging
The server writes its complete structured log stream to stderr so stdout remains reserved for MCP protocol traffic. Configure the minimum severity before launch with FLUENT_MCP_LOG_LEVEL (default info; use debug to include raw SDK CLI output). Runtime logging/setLevel and notifications/message are intentionally not used.
CI/CD (non-interactive) authentication — SDK v4.7.0+
For headless pipelines, the ServiceNow SDK CLI reads credentials directly from SN_SDK_* environment variables (the MCP server inherits and passes these through to spawned commands — no extra configuration needed). Set SN_SDK_NODE_ENV=SN_SDK_CI_INSTALL to enable CI mode, then:
Variable | Required | Value |
| yes |
|
| for oauth |
|
| yes | Full instance URL |
| basic | Username / password |
| oauth | OAuth |
OAuth uses the client_credentials grant against /oauth_token.do. See the SDK's ci-integration guide (via explain_fluent_api) for instance setup details.
Usage Examples
Typical Workflow
Initialize Project
Create a new Fluent app in ~/projects/asset-tracker for IT asset managementDevelop with Resources
Show me the business-rule API specification and provide an example snippetBuild and Deploy
Build the app with debug output, then deploy it
Note: Authentication is validated lazily using
SN_INSTANCE_URLandSN_AUTH_TYPE; those settings do not replace an SDK auth profile unless non-interactive setup can complete. If you need to set up a new profile, run:npx @servicenow/sdk auth --add <instance-url> --type <basic|oauth> --alias <alias>
Testing with MCP Inspector
The MCP Inspector provides a web interface for testing MCP servers.
Launch Inspector
# Test published package
npx @modelcontextprotocol/inspector npx @modesty/fluent-mcp
# Or for local development (built server)
npm run build && npm run inspect
# Or against the TypeScript entry point, no build required
npm run inspect:devWhat to verify
The Tools tab shows all 15 tools in deterministic name order.
Optional parameters render with their normal types rather than as nullable union forms.
Structured server logs appear on the server process stderr/terminal output; stdout remains reserved for MCP protocol traffic.
Test Scenarios
Scenario 1: Explore Business Rule Resources
Objective: Access API specs and code snippets for business rules
Steps:
Launch Inspector and wait for server connection
Navigate to Resources tab
Find and click
sn-spec://business-rulein the resource listReview the API specification showing all available methods and parameters
Go back and search for
sn-snippet://business-rule/0001Click the snippet to view a complete TypeScript example
Verify content includes proper imports and follows Fluent patterns
Expected Results:
API spec displays structured documentation with method signatures
Snippet shows runnable TypeScript code with ServiceNow metadata patterns
Content is properly formatted and readable
Scenario 2: Test SDK Info Command
Objective: Verify SDK version and help information retrieval
Steps:
Navigate to Tools tab
Select
sdk_infofrom the tool listTest Version:
Set
flagparameter to-vClick Execute
Verify response shows the SDK version (e.g.,
4.9.0)
Test Help:
Set
flagparameter to-hSet
commandparameter tobuildClick Execute
Verify response shows build command documentation with options
Monitor the server process stderr/terminal output for command execution logs (set
FLUENT_MCP_LOG_LEVEL=debugbefore launch for verbose output)
Expected Results:
Version command returns SDK version string
Help command returns detailed command documentation
List metadata (
-lm) returns available Fluent metadata typesNo unexpected protocol errors; command logs are emitted on stderr rather than through MCP
notifications/messageCommands execute within 2-3 seconds
License
MIT
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
- AlicenseBquality-maintenanceEnables Claude to interact with ServiceNow instances through the ServiceNow API. Supports comprehensive ServiceNow operations including incident management, service catalog management, change requests, user management, and workflow automation through natural language.82
- AlicenseAqualityDmaintenanceEnables natural language interaction with ServiceNow instances for managing incidents, changes, CMDB, service catalog, users, groups, and knowledge base via MCP.4145MIT
- Alicense-qualityBmaintenanceEnables 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
- Alicense-qualityCmaintenanceEnables Claude to interact with ServiceNow instances through the ServiceNow API, supporting record management, service catalog operations, change management, and more via natural language.MIT
Related MCP Connectors
Debug, build, and manage Power Automate cloud flows with AI agents
Search @imqueue docs and scaffold typed services & clients from your AI coding agent.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
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/modesty/fluent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server