mcp-business-central
MCP server from Sofias-ai/mcp-business-central-server
claude mcp add --transport stdio sofias-ai-mcp-business-central-server python -m mcp_bc_server \ --env BC_PASS="Your Business Central API password" \ --env BC_USER="Your Business Central API username" \ --env BC_COMPANY="The name of your Business Central company" \ --env BC_URL_SERVER="Your Business Central API server URL (e.g., https://api.businesscentral.dynamics.com/v2.0/tenant/api/v2.0)"
How to use
This MCP server exposes a set of tools to interact with Microsoft Dynamics 365 Business Central entities via the Model Context Protocol (MCP). The available tools include BC_Get_Schema to retrieve the schema for a given Business Central entity, BC_List_Items to fetch lists of entities with optional filtering and pagination, BC_Get_Items_By_Field to search entities by a specific field value, BC_Create_Item to create new records, BC_Update_Item to modify existing records, and BC_Delete_Item to remove records. To use the server, configure the mcpServers section with your BC credentials and point clients to the server’s address. The server expects you to specify the target BC entity (table) and the appropriate fields when invoking these tools. Ensure your BC_URL_SERVER, BC_USER, BC_PASS, and BC_COMPANY environment variables are set correctly before starting the server.
How to install
Prerequisites:
- Python 3.10+
- Git installed
- Access to the Business Central API (with proper credentials)
Installation steps:
- Clone the repository: git clone https://github.com/xxx/mcp-business-central-server.git
- Navigate to the project directory: cd mcp-business-central-server
- Create and activate a virtual environment: python -m venv .venv source .venv/bin/activate # On Windows: ..venv\Scripts\activate
- Install development dependencies (editable mode): pip install -e .
- Install from PyPI (alternative for production): pip install mcp-business-central-server
- Prepare environment variables (BC_URL_SERVER, BC_USER, BC_PASS, BC_COMPANY) in a .env file or your environment before running the server.
- Run the server: python -m mcp_bc_server
Optional (using uv for development):
- Install uv and run tests or server as described in the docs: uv pip install mcp-business-central-server
Additional notes
Environment variables are critical for authenticating with Business Central. Keep BC_PASS secure and consider using a secrets manager in production. The server relies on the exact Business Central entity names (tables) as exposed by the BC API; entity names are case-sensitive. If you encounter rate-limiting or authentication issues, verify that BC_URL_SERVER points to the correct tenant URL and that BC_COMPANY is the active company. When integrating with clients like Claude Desktop, provide the same environment variables in the integration configuration. For local development, a .env file with the BC credentials is a convenient approach, but ensure it is not committed to version control.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP