alrm-mcp
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., "@alrm-mcpReserve a new ID for codeunit ART CU Demo Data"
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.
alrm-mcp
MCP server for AL ID Range Manager.
Lets an AI coding agent reserve AL object IDs the same way the ALRM VS Code extension does. When the agent is about to create a new AL object, it calls new_object, and the shared ALRM database in Business Central validates the name and hands back the next free object ID — so IDs stay unique across everyone working on the same extension.
Tools
new_object
Registers a new AL object and returns its assigned ID.
Parameter | Type | Description |
| UUID | The |
| see below | AL object type |
| string, ≤ 30 chars | Object name, e.g. |
Returns the object ID as text, e.g. 50061. Calling it again with the same name returns the same ID rather than allocating a new one.
Related MCP server: Dynamics 365 Business Central Admin MCP Server
Requirements
Node.js 20 or newer
A Business Central environment with the ALRM extension installed
Permission to sign in to that environment (see Authentication)
Configuration
{
"mcpServers": {
"alrm-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "alrm-mcp@latest"],
"env": {
"BC_TENANT": "{tenant}",
"BC_ENVIRONMENT": "{environment}",
"BC_COMPANY": "{company}"
}
}
}
}For Claude Code you can add it in one command:
claude mcp add alrm-mcp \
--env BC_TENANT=contoso.com \
--env BC_ENVIRONMENT=Production \
--env BC_COMPANY=00000000-0000-0000-0000-000000000000 \
-- npx -y alrm-mcp@latestEnvironment variables
All three are required — the server exits immediately with a message naming whichever is missing.
Variable | Description |
| Your Microsoft Entra tenant — either the domain ( |
| The Business Central environment name as shown in the BC admin center, e.g. |
| The company id (a GUID, not the display name). List them at |
These are read only from the MCP client's env block — there is no .env
file support, since the server is normally launched by the client rather than
from a shell.
Two optional variables let you point the server at your own Entra app registration instead of the default public client:
Variable | Default | Description |
| built-in | Application (client) ID of a public client app registration. |
|
| Authority tenant used for sign-in. Set this to restrict sign-in to a single tenant. |
Authentication
The first tool call signs you in using the OAuth 2.0 device code flow:
A browser tab opens at https://microsoft.com/devicelogin.
The device code is copied to your clipboard, and also printed to the server's stderr in case the clipboard or browser isn't available.
Paste the code, complete sign-in, and the tool call proceeds.
Afterwards the token cache is stored in your operating system's credential store — Keychain on macOS, DPAPI on Windows, Secret Service/libsecret on Linux — with a small index file at .alrm-cache.json in your home directory. Later sessions reuse it silently, including across restarts of the server and of your editor, so you should not see the browser again until the refresh token expires (roughly 90 days of inactivity).
To sign out, delete .alrm-cache.json and remove the alrm-mcp entry from your credential store. On macOS:
rm ~/.alrm-cache.json
security delete-generic-password -s alrm-mcp -a alrm-mcpThere is no logout command yet.
Platform notes
On Linux the server refuses to fall back to storing tokens in plaintext. On a headless machine with no Secret Service available, sign-in will fail rather than silently write an unencrypted token cache.
Troubleshooting
The server won't start / the client reports CONNECTION_CLOSED. Almost always a missing or misspelled environment variable. Run it directly to see the actual error, which the MCP client swallows:
BC_TENANT=contoso.com BC_ENVIRONMENT=Production BC_COMPANY=... npx -y alrm-mcp@latestA healthy server prints MCP server running on stdio and waits.
Extension {id} not found! The appId from your app.json has not been registered in the ALRM database for this company. Register the extension first, using the VS Code extension or directly in Business Central.
A browser opened unexpectedly. That's the sign-in described above. It should happen once, not on every call — if it repeats, the token cache isn't being persisted; check the stderr output for a message about reusing the stored sign-in.
Development
git clone https://github.com/hiimnit/alrm-mcp.git
cd alrm-mcp
npm install
npm run buildThen point your MCP client at the local build instead of the published package:
{
"mcpServers": {
"alrm-mcp": {
"command": "node",
"args": ["/absolute/path/to/alrm-mcp/dist/index.js"],
"env": {
"BC_TENANT": "...",
"BC_ENVIRONMENT": "...",
"BC_COMPANY": "..."
}
}
}
}npm run typecheck checks types without emitting. npm run build cleans dist/ first, and also runs automatically on npm pack and npm publish.
This server cannot be installed
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
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to perform Business Central AL development tasks including language server operations, container management, Git version control, and file system operations for professional BC development workflows.
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Dynamics 365 Business Central environments through natural language commands, including environment, app, session, and extension management.459MIT
- FlicenseNot gradedqualityCmaintenanceGenerates AL code for Business Central directly from your IDE, enhancing developer efficiency by providing tools, prompts, and resources for code generation.1
- AlicenseAqualityCmaintenanceProvides AI assistants with complete visibility into AL dependencies and symbols by exposing compiled .app files through the Model Context Protocol, enabling smart object discovery, deep code analysis, and reference tracking for Business Central development.644780MIT
Related MCP Connectors
Debug, build, and manage Power Automate cloud flows with AI agents
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
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/hiimnit/alrm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server