rpf-mcp
Provides tools to build and manage React Portal portals and components through the ServiceNow Forge API, including pages, placements, menus, themes, and component source files.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
rpf-mcp
rpf-mcp is the Forge MCP server: build React Portal portals and components from Claude Code or Claude Desktop. React Portal is a ServiceNow application for building portals with React. The application is a paid product, sold separately; the rpf tools that work with it are free and MIT-licensed.
The server is a local MCP server on stdio. Its tools call the instance's Forge API
(/api/x_312987_portal/rp_forge) as your ServiceNow user, so your React Portal Studio roles decide what it can do:
developer for component code; designer for portals, pages, placements, menus and themes. No AI runs on the instance
and no AI keys are stored there; your Claude does the thinking.
The server is built into the rpf CLI as rpf mcp: install @quixomatic/rpf to get it. rpf-mcp isn't published to
npm on its own; this repository is its source, and a checkout can also run it directly with Bun.
Requirements
A ServiceNow instance with React Portal installed and Forge enabled, and a user with a React Portal Studio role.
With
rpf mcp(recommended): Node 24 or newer.From a checkout: Bun 1.4 or newer (the source is TypeScript and runs with Bun directly).
Related MCP server: ServiceNow MCP Server
Install and run
Recommended: rpf mcp
npm i -g @quixomatic/rpf
rpf auth add dev --instance acme-dev --kind oauth-code
rpf auth login dev
claude mcp add forge -- rpf mcp --profile devrpf mcp takes its settings from the profile (or RP_* environment variables with --instance), keeps secrets in
rpf's encrypted credential store, and has the same tools. For Claude Desktop, add it to claude_desktop_config.json
(Settings, Developer, Edit config) and restart Claude Desktop:
{
"mcpServers": {
"forge": {
"command": "rpf",
"args": ["mcp", "--profile", "dev"]
}
}
}From a checkout (development)
git clone https://github.com/Quixomatic/rpf-mcp # inside the workspace folder with its sibling repos (Contributing)
claude mcp add forge -e RP_INSTANCE=https://acme-dev.service-now.com -e FORGE_AUTH=oauth-code -- bun run /path/to/rpf-mcp/src/index.ts
bun run src/index.ts auth login # oauth-code: browser sign-in with PKCE (--no-browser, --paste)
bun run src/index.ts auth status # kind, cached token expiry, who Forge runs as
bun run src/index.ts auth logout # revoke and forget the cached tokenSettings come from the environment first, then an env file: FORGE_ENV_FILE, else .forge-mcp.env in the project
folder. The project folder is RP_REPO, else the current directory (Claude Code starts MCP servers in the project).
Keep the env file out of version control.
Variable | Meaning |
|
|
| Sign-in kind (see Authentication). Unset: |
| Basic auth and the OAuth password grant |
|
|
| Per-request timeout (default 280000) |
| Where OAuth tokens are cached (default |
| Extra folders (a path list) where the workspace tools look for local workspaces, besides |
Safety
Your roles apply. Every call runs as you, and the instance checks your Studio role per operation.
Writes follow the application scope. Editing a record needs your current application (the application picker) to be the record's app; new portals, components and themes land in the current app, never Global; a portal's pages, placements and menus follow the portal's app. Otherwise the write answers
wrong_scopewith the owning app.switch_appchanges the picker (optionally with an update set); every write also takes an optionalapp, and the instance refuses the write unless that app is current.Dry run everywhere. Every write tool accepts
dryRun: true. The instance validates everything (roles, references, regions, option keys, and a full compile of component files) and returns exactly what would change. The real write runs the same prepared arguments, so the plan and the result can't drift.No deletes. Removing a page, side panel, page variant, placement or menu item deactivates it.
apply_specnever removes anything and reports what the spec doesn't list inplan.unlisted.New portals are drafts. Forge can't publish:
create_portalandupdate_portalrefuseactive: true. Publishing is a Studio action that needs the publisher role.Kill switch. Setting the system property
x_312987_portal.forge.mcp.enabledto anything buttrueblocks the whole Forge API with a 403, and every tool then answers "Forge is disabled on this instance".
Tools
Call orientation first: it returns the hard rules, the workspace, the instance (React Portal version, Forge API
level, features, your capabilities), the component anatomy, the examples and a reading list.
Group | Tools |
Context |
|
Reuse and lookups |
|
Data (read-only, as you) |
|
Portals |
|
List cells |
|
Components |
|
Themes |
|
Local workspaces |
|
|
|
References and plans |
|
The prompt design_theme (arguments brief and an optional base) walks Claude through designing a contrast-safe
theme and creating it with create_theme, dry run first.
Authentication
Every sign-in kind resolves to a real ServiceNow user, and Forge applies that user's Studio roles.
| Settings | Runs as | Instance setup |
|
| that user | none |
|
| that user | Application Registry client |
|
| the client's OAuth Application User | client with that user + |
| none: | whoever signs in in the browser | none: React Portal installs the public PKCE client Forge MCP |
|
| the token's user | any OAuth client; not refreshed |
|
| the key's user | REST API Key + API key auth profile + an API access policy on |
|
| the mapped user | CA Certificate Chain + User to Certificate Mapping |
|
| the browser session's user | none |
RP_CLIENT_CERT / RP_CLIENT_KEY are presented under any kind, so a certificate can sit under OAuth or basic too.
The Forge MCP OAuth client that React Portal installs is public, with PKCE always on, so it covers oauth-code
only. oauth-password and oauth-client need a confidential client an admin creates; set its ID and secret in
RP_OAUTH_CLIENT_ID / RP_OAUTH_CLIENT_SECRET. OAuth tokens are refreshed a minute before expiry and once more after
a 401; they are never logged.
Errors name the kind: unauthenticated (401), forbidden (403: a user without a Studio role, or a token scope or
access policy), oauth_token_failed (a grant refused, with that grant's requirements), login_required (oauth-code
without a valid refresh token).
The full per-kind setup is in the React Portal docs on your instance (rpf docs read studio/forge-mcp).
How it fits
Repository | npm | What |
| The shared core, TypeScript source | |
| The browser host behind | |
rpf-mcp (this one) | bundled in | The Forge MCP server |
| The | |
|
| |
not on npm | React Portal Forge, the desktop app |
rpf-mcp depends on rpf-core. The CLI bundles rpf-core, rpf-mcp and the rpf-dev-host build, so @quixomatic/rpf is
the one package most people install. Forge is an add-on installed next to it. The desktop app bundles rpf and
rpf-forge. All public packages are released in lockstep with the same version (1.x).
Contributing / development
The rpf repositories are developed side by side in one folder, linked by a pnpm workspace:
# pnpm-workspace.yaml, in the folder that holds the checkouts
packages:
- rpf-core
- rpf-dev-host
- rpf-mcp
- rpf-cli
- rpf-forge
- rpf-desktop
nodeLinker: hoistedpnpm install at the workspace root links them; dependencies between the packages are workspace:* (publishing
replaces them with the exact version). The package scripts run with Bun, so install Bun 1.4+ as well. For local runs,
copy .env.example to .forge-mcp.env and fill it in.
Imports. This repository's own code is imported through the
#src/*alias (package.json"imports": { "#src/*": "./src/*" }plus the matching tsconfigpaths), never through../chains. Other packages are imported by name, e.g.@quixomatic/rpf-core/client.ts.Style. Prettier with the shared
.prettierrc.json: semicolons, single quotes, 4 spaces, 120 columns. JSDoc on every function.Changelog. Every change gets a
CHANGELOG.mdentry.
Scripts:
Script | What |
| Runs the server on stdio |
| Verifies the settings and that Forge is enabled; prints your capabilities |
| The sign-in commands |
| Schema, smoke and auth tests (the auth tests run every kind against a mocked instance) |
|
|
| Drives the server through a real MCP client against the configured instance: reads, dry runs, dry run then real writes, cleanup by deactivation. It creates the draft portal |
| Read-only sign-in checks against the configured instance |
| Checks that the synced files ( |
License
MIT © TurboForge LLC (see LICENSE). React Portal itself, the ServiceNow application, is a separate proprietary product.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read and write NetSuite and run SuiteQL from Claude or ChatGPT. Write tools flagged for approval.
Read and write Sage Intacct from Claude or ChatGPT. Write tools are flagged for approval.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude to interact with ServiceNow instances through the ServiceNow API, allowing data retrieval, record management, and workflow execution. Supports multiple authentication methods and tool packaging for role-based access control.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
- FlicenseAqualityDmaintenanceAI-powered ServiceNow developer toolkit for Claude Code with 116 tools covering script generation, code review, portal and catalog development, notifications, user and group management, CRUD operations, dictionary overrides, data migration, bidirectional integrations, ATF testing, performance analysis, technical documentation, and issue diagnosis.1001-
- FlicenseNot gradedqualityDmaintenanceConnects Claude Desktop to a ServiceNow instance, enabling natural-language interactions to read incidents, inspect CMDB and table schemas, and create records with guardrails like update set scoping and dry-run preview.-