npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bc-mcp-proxy-fisqal

v1.0.12

Published

Business Central MCP Proxy - npm wrapper for running the C# MCP proxy locally

Readme

BC MCP Proxy

This is an npm wrapper for Microsoft's Business Central MCP (Model Context Protocol) Proxy.

What is BC MCP Proxy?

The BC MCP Proxy is a C# application that acts as a bridge between MCP clients (like Cursor, Claude Desktop, etc.) and Business Central instances. It handles authentication and proxies requests to Business Central APIs.

Prerequisites

  • Node.js 14.0 or later
  • .NET SDK 8.0 or later (Download here)
  • A Business Central instance (online or on-premises)

Installation

Local Installation (in your project)

npm install

Global Installation

npm install -g bc-mcp-proxy-fisqal

Or use directly with npx:

npx bc-mcp-proxy-fisqal

Usage

Running the Proxy

# If installed locally
npm start

# If installed globally
bc-mcp-proxy

# Using npx
npx bc-mcp-proxy-fisqal

Configuration

The BC MCP Proxy can be configured in two ways:

Option 1: Using appsettings.json (Recommended)

Create an appsettings.json file in the package directory with your Business Central connection details:

{
  "BcMCPProxy": {
    "TenantId": "your-tenant-id-here",
    "ClientId": "your-client-id-here",
    "Url": "https://api.businesscentral.dynamics.com",
    "Environment": "Production",
    "Company": "CRONUS International Ltd.",
    "ConfigurationName": "",
    "TokenScope": "https://api.businesscentral.dynamics.com/.default"
  }
}

Important Configuration Fields:

  • TenantId: Your Azure AD tenant ID (required)
  • ClientId: Your Azure AD application (client) ID (required)
  • Environment: Business Central environment name (e.g., "Production", "Sandbox")
  • Company: Business Central company name (exact match, case-sensitive)
  • Url: Business Central API base URL (default: https://api.businesscentral.dynamics.com)

Option 2: Using Command-Line Arguments

You can also pass arguments directly:

bc-mcp-proxy --TenantId <tenant-id> --ClientId <client-id> --Environment <env> --Company <company-name>

Note: Command-line arguments take precedence over appsettings.json.

Using with Cursor

  1. Add the MCP server to your Cursor settings (Settings > Features > MCP):
{
  "mcpServers": {
    "bc-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "bc-mcp-proxy-fisqal@latest",
        "--TenantId",
        "your-tenant-id-here",
        "--ClientId",
        "your-client-id-here",
        "--Environment",
        "Production",
        "--Company",
        "Your Company Name",
        "--ConfigurationName",
        "Op"
      ]
    }
  }
}

Note: Replace the placeholder values with your actual Business Central connection details. This setup works anywhere and doesn't require a local appsettings.json file.

Or use command-line arguments directly:

{
  "mcp": {
    "servers": {
      "bc-proxy": {
        "command": "npx",
        "args": [
          "bc-mcp-proxy-fisqal",
          "--TenantId", "your-tenant-id",
          "--ClientId", "your-client-id",
          "--Environment", "Production",
          "--Company", "Your Company Name"
        ]
      }
    }
  }
}

Building from Source

If you need to rebuild the C# project:

npm run build

Project Structure

bc-mcp-proxy-npm/
├── bin/
│   └── bc-mcp-proxy.js      # CLI wrapper
├── scripts/
│   ├── install.js           # Post-install script
│   └── build.js             # Build script
├── src/
│   └── BcMCPProxy/          # Downloaded C# source (created on install)
├── package.json
└── README.md

Troubleshooting

Authentication Errors

If you see authentication errors like "Selected user account does not exist in tenant":

  1. Verify Tenant ID: Ensure the TenantId in appsettings.json matches your Azure AD tenant
  2. Check User Access: The user account must exist in the specified tenant or be added as an external user
  3. Verify Client ID: Ensure the ClientId matches your Azure AD app registration
  4. Check Permissions: Verify your Azure AD app has the required permissions:
    • Financials.ReadWrite.All (Delegated)
    • user_impersonation (Delegated)
  5. Admin Consent: Ensure admin consent has been granted for the app permissions

.NET SDK Not Found

If you get an error about .NET SDK not being found:

  1. Install .NET 8.0 SDK from: https://dotnet.microsoft.com/download
  2. Restart your terminal
  3. Run npm run build

Configuration Not Found

If you see "appsettings.json not found":

  1. Copy the example: cp appsettings.example.json appsettings.json
  2. Edit appsettings.json with your Business Central credentials
  3. Ensure the file is in the package root directory

Company Not Found

If you get errors about company not being found:

  1. Check the company name matches exactly (case-sensitive)
  2. Verify the company exists in your Business Central environment
  3. List companies using: GET https://api.businesscentral.dynamics.com/v2.0/{tenant}/{environment}/api/v2.0/companies

Source Not Downloaded

If the automatic download fails:

  1. Manually clone the repository:

    git clone https://github.com/microsoft/BCTech.git
    cd BCTech/samples/BcMCPProxy
    dotnet build -c Release
  2. Or download directly from: https://github.com/microsoft/BCTech/tree/master/samples/BcMCPProxy

License

This npm wrapper is MIT licensed. The BC MCP Proxy source code is part of the Microsoft BCTech repository.

Links

Support

For issues related to: