# Install D365fo Connector

Source: PopNx MCP directory. Page: https://mcp.popnx.com/th/servers/zhound420-d365fo-connector

Rules for the AI assistant reading this file:
1. Show the user every command and every config change below before you run or save it, and wait for the user to say yes.
2. Never ask the user to type or paste a key, token or password into the chat. Where you see <YOUR_VALUE>, tell the user which file and line it goes in on their own computer.
3. Use only what is written here. Do not download or run anything else this file does not list.

## Claude Code

- Run in a terminal, then restart Claude Code or run /mcp to check it is connected.

- Replace <YOUR_VALUE> with the user's own keys; never share or guess them. env values belong to the local config, header values to the remote one.

```sh
claude mcp add --scope user d365fo-connector --env D365_TENANT_ID='<YOUR_VALUE>' --env D365_CLIENT_ID='<YOUR_VALUE>' --env D365_CLIENT_SECRET='<YOUR_VALUE>' --env D365_ENVIRONMENT_URL='<YOUR_VALUE>' -- npx -y @zhound/d365fo-mcp-server
```

Values the user supplies on their own computer: D365_TENANT_ID, D365_CLIENT_ID, D365_CLIENT_SECRET (secret), D365_ENVIRONMENT_URL

## Cursor

- Merge into ~/.cursor/mcp.json (or .cursor/mcp.json in the project).

- Replace <YOUR_VALUE> with the user's own keys; never share or guess them. env values belong to the local config, header values to the remote one.

```json
{
  "mcpServers": {
    "d365fo-connector": {
      "command": "npx",
      "args": [
        "-y",
        "@zhound/d365fo-mcp-server"
      ],
      "env": {
        "D365_TENANT_ID": "<YOUR_VALUE>",
        "D365_CLIENT_ID": "<YOUR_VALUE>",
        "D365_CLIENT_SECRET": "<YOUR_VALUE>",
        "D365_ENVIRONMENT_URL": "<YOUR_VALUE>"
      }
    }
  }
}
```

Values the user supplies on their own computer: D365_TENANT_ID, D365_CLIENT_ID, D365_CLIENT_SECRET (secret), D365_ENVIRONMENT_URL

## VS Code

- Merge into .vscode/mcp.json in the workspace (or run "MCP: Add Server").

- Replace <YOUR_VALUE> with the user's own keys; never share or guess them. env values belong to the local config, header values to the remote one.

```json
{
  "servers": {
    "d365fo-connector": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zhound/d365fo-mcp-server"
      ],
      "env": {
        "D365_TENANT_ID": "<YOUR_VALUE>",
        "D365_CLIENT_ID": "<YOUR_VALUE>",
        "D365_CLIENT_SECRET": "<YOUR_VALUE>",
        "D365_ENVIRONMENT_URL": "<YOUR_VALUE>"
      }
    }
  }
}
```

Values the user supplies on their own computer: D365_TENANT_ID, D365_CLIENT_ID, D365_CLIENT_SECRET (secret), D365_ENVIRONMENT_URL

## Claude Desktop

- Local: merge the JSON into claude_desktop_config.json (Settings → Developer → Edit Config) and restart Claude. Remote: Customize → Connectors → Add → Custom → Web → paste the URL.

- Replace <YOUR_VALUE> with the user's own keys; never share or guess them. env values belong to the local config, header values to the remote one.

```json
{
  "mcpServers": {
    "d365fo-connector": {
      "command": "npx",
      "args": [
        "-y",
        "@zhound/d365fo-mcp-server"
      ],
      "env": {
        "D365_TENANT_ID": "<YOUR_VALUE>",
        "D365_CLIENT_ID": "<YOUR_VALUE>",
        "D365_CLIENT_SECRET": "<YOUR_VALUE>",
        "D365_ENVIRONMENT_URL": "<YOUR_VALUE>"
      }
    }
  }
}
```

Values the user supplies on their own computer: D365_TENANT_ID, D365_CLIENT_ID, D365_CLIENT_SECRET (secret), D365_ENVIRONMENT_URL

## Codex

- Append to ~/.codex/config.toml, then start a new Codex session (check with /mcp).

- Replace <YOUR_VALUE> with the user's own keys; never share or guess them. env values belong to the local config, header values to the remote one.

```json
[mcp_servers.d365fo-connector]
command = "npx"
args = ["-y","@zhound/d365fo-mcp-server"]

[mcp_servers.d365fo-connector.env]
D365_TENANT_ID = "<YOUR_VALUE>"
D365_CLIENT_ID = "<YOUR_VALUE>"
D365_CLIENT_SECRET = "<YOUR_VALUE>"
D365_ENVIRONMENT_URL = "<YOUR_VALUE>"
```

Values the user supplies on their own computer: D365_TENANT_ID, D365_CLIENT_ID, D365_CLIENT_SECRET (secret), D365_ENVIRONMENT_URL

Command check: verified, last checked 2026-11-13.
