AL Dependency MCP Server logo

AL Dependency MCP Server

Community
StefanMaron

Give AI assistants complete visibility into your AL dependencies and symbols.

PublisherStefanMaron
RepositoryAL-Dependency-MCP-Server
LanguageTypeScript
Forks
17
Stars
80
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    AL Dependency MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    80 stars and 17 forks from the linked repository.

AL MCP Server

npm version CI MIT License Node.js .NET MCP Compatible

Give AI assistants complete visibility into your AL dependencies and symbols.

What This Solves

AI coding assistants can't see compiled AL packages or understand Business Central object relationships. This creates a blind spot when helping with AL development.

The AL MCP Server bridges this gap by exposing your AL workspace's compiled symbols (.app files) directly to AI assistants through the Model Context Protocol.

Quick Start

Prerequisites

  • Node.js 18+ (download)
  • .NET SDK 8.0+ (download)
  • Compiled AL packages (.app files in .alpackages directory)

Verify your setup:

bash
dotnet --version  # Should show 8.0 or higher

The AL MCP Server installs automatically via npx - no manual installation needed.

Configure Your AI Assistant

Claude Code (Recommended)

bash
claude mcp add al-mcp-server -- npx al-mcp-server

Or via VS Code settings:

json
{
  "claude.mcpServers": {
    "al-symbols-mcp": {
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

GitHub Copilot

Create .vscode/mcp.json in your workspace:

json
{
  "servers": {
    "al-symbols-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

Cursor IDE

Add to Cursor settings (Settings → Features → Model Context Protocol):

json
{
  "al-symbols-mcp": {
    "command": "npx",
    "args": ["al-mcp-server"]
  }
}

Continue (VS Code Extension)

Add to ~/.continue/config.json:

json
{
  "mcpServers": {
    "al-symbols-mcp": {
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

Cody (Sourcegraph)

Add to VS Code settings:

json
{
  "cody.mcpServers": {
    "al-symbols-mcp": {
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

Other MCP-Compatible Tools

Use these connection details:

  • Command: npx
  • Args: ["al-mcp-server"]
  • Type: stdio

Test It Works

Ask your AI assistant:

Search for Customer table in my AL project

The server will auto-start and provide intelligent AL assistance!

Available Tools

The AL MCP Server provides 6 token-optimized tools for AL code analysis:

Core Query Tools

al_search_objects

  • Search for AL objects by name, type, or wildcard pattern
  • Filter by business domain (Sales, Finance, Inventory, etc.)
  • Support for all AL object types (Table, Page, Codeunit, Report, etc.)
  • Token-efficient summary mode enabled by default

al_get_object_definition

  • Get detailed object information by ID or name
  • Includes fields, procedures, properties, and keys
  • Configurable detail level with field/procedure limits
  • Summary mode for token efficiency

al_find_references

  • Find all references to an object or field
  • Track extensions, variables, parameters, return types
  • Field-level reference tracking across all object types
  • Optional context for detailed reference information

al_search_object_members

  • Unified search for object child elements
  • Search procedures, fields, controls, or dataitems
  • Wildcard pattern matching support
  • Pagination and detail level control

al_get_object_summary

  • Get intelligent categorized overview of objects
  • Organizes procedures by purpose (validation, posting, utilities, etc.)
  • Identifies key entry points automatically
  • Highly token-efficient categorized output

Package Management

al_packages

  • Unified package management with action parameter
  • Load: Auto-discover and load packages from project root
  • List: Show all currently loaded packages
  • Stats: Database statistics and object counts

Capabilities

Smart Object Discovery

  • Search across all loaded AL packages simultaneously
  • Wildcard pattern matching for flexible queries
  • Filter by object type, package, or business domain
  • Auto-discovery of .alpackages directories

Deep Code Analysis

  • Complete object definitions with all metadata
  • Procedure and field information with properties
  • Page control structure analysis
  • Report/query dataitem traversal

Reference Tracking

  • Find all object references and dependencies
  • Track object extensions and customizations
  • Field-level usage analysis across pages, tables, reports
  • Variable and parameter tracking in codeunits

Business Domain Intelligence

  • Search by business area (Sales, Purchasing, Finance, Inventory, Manufacturing, Service)
  • Pattern-based domain detection
  • Cross-package domain analysis

Architecture

AL MCP Server
├── Symbol Extraction Layer
│   └── AL CLI integration for .app file parsing
├── Streaming Parser
│   └── Efficient handling of large symbol files (50MB+)
├── In-Memory Database
│   └── Optimized indices for sub-100ms queries
├── MCP Protocol Handler
│   └── JSON-RPC communication with AI assistants
└── Auto-Discovery Engine
    └── Smart .alpackages directory detection

Performance Features:

  • Lazy initialization - packages load on first request
  • Streaming JSON parsing prevents memory issues
  • Multiple optimized indices for O(1) lookups
  • Version filtering uses latest package only
  • Token-optimized responses reduce AI context usage

Requirements

Runtime:

  • Node.js 18 or higher
  • .NET SDK 8.0 or higher
  • NuGet package source (nuget.org)

Project Structure:

  • AL workspace with app.json
  • Compiled .app packages in .alpackages directory

Supported AL Packages:

  • Modern namespace-based packages
  • Legacy non-namespace packages (PTEs)
  • Business Central base application
  • AppSource extensions

The server analyzes compiled AL symbols, not raw .al source files.

Troubleshooting

AL CLI not found

  • The server auto-installs AL tools
  • Requires .NET SDK 8.0 or higher
  • Verify: dotnet --version

NU1100 error

  • Update to .NET SDK 8.0+
  • Configure NuGet: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org

No sources found

  • Check NuGet sources: dotnet nuget list source
  • Should include nuget.org

No packages found

  • Ensure .app files exist in .alpackages directory
  • Use al_auto_discover tool to search for packages
  • Check that packages were compiled successfully

Server not responding

  • Verify Node.js 18+ is installed
  • Check AI assistant MCP configuration
  • Review server logs in AI assistant output

Need Help?

Example Usage

Once configured, ask your AI assistant:

"Show me all Sales-related codeunits"
"Find all references to the Customer table"
"What procedures are in the Sales-Post codeunit?"
"Search for all pages that use the Item table"
"Give me a summary of the Gen. Journal-Post Batch codeunit"

The AI assistant will use the MCP tools to provide accurate, context-aware responses based on your actual AL packages.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Write tests for changes
  4. Ensure all tests pass
  5. Submit a pull request

License

MIT License - see LICENSE file for details.


Transform AL development with AI assistants that truly understand your codebase.

Use AL Dependency MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once AL Dependency MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add AL Dependency MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the AL Dependency MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "al-dependency-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the AL Dependency MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the AL Dependency MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use AL Dependency MCP Server to help me with this task?
AL Dependency MCP Server
Sure. I read it.
Here is what I found using AL Dependency MCP Server.

Frequently asked questions

What is the AL Dependency MCP Server MCP server used for?

AL Dependency MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use AL Dependency MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use AL Dependency MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use AL Dependency MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With AL Dependency MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect AL Dependency MCP Server MCP to TypingMind?

AL Dependency MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does AL Dependency MCP Server MCP provide in TypingMind?

AL Dependency MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use AL Dependency MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If AL Dependency MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇