DNN API Server (.NET C# Version)

DNN API Server (.NET C# Version)

dnn-dotnet-mcp--server•bysachatrauwaen

A C# .NET Model Context Protocol server that provides tools for interacting with DNN Platform through its APIs.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Authenticates against the DNN API using configured credentials or a token.
  • •Exposes host tools to read DNN host settings and clear the DNN cache.
  • •Exposes portal tools to retrieve portal details and list all portals.
  • •Supports site configuration via environment variables or a JSON sites file.

BEST FOR

  • •Managing DNN host settings and cache through an MCP client.
  • •Inspecting DNN portal details and enumerating portals.
  • •Developers extending DNN tooling by adding new MCP server tools.

ABOUT DNN-DOTNET-MCP--SERVER

DNN API Server (.NET C# Version) is cataloged as an MCP server attributed to sachatrauwaen. A C# .NET Model Context Protocol server that provides tools for interacting with DNN Platform through its APIs. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for DNN API Server (.NET C# Version) are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What does the server require to run?

.NET 7.0 or higher and a DNN Platform instance are required.

How can the server be configured?

The server can be configured using environment variables, optionally referencing a JSON file of site configurations.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 2a1c3267539a · 采集于 2026-11-13 12:33:33 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

DNN API Server (.NET C# Version)

A Model Context Protocol (MCP) server for DNN Platform written in C# using .NET.

Overview

This server implements the Model Context Protocol to provide tools for interacting with DNN Platform through its APIs. It's a C# port of the Node.js implementation using the official ModelContextProtocol SDK.

Features

  • Authentication with DNN API
  • Host management tools
  • Portal management tools
  • Support for site configuration via environment variables or JSON file
  • Easily extensible using MCP SDK attributes

Requirements

  • .NET 7.0 or higher
  • DNN Platform instance

Configuration

The server can be configured using environment variables:

  • DNN_API_URL: URL to your DNN installation API (required)
  • DNN_USERNAME: DNN username (required if not using a token)
  • DNN_PASSWORD: DNN password (required if not using a token)
  • DNN_SITES_FILE: Path to a JSON file containing site configurations (optional)
  • DNN_SITE: Name of the site configuration to use from the sites file (optional, default: "dnn18")

Site Configuration File Format

{
  "sites": {
    "dnn18": {
      "url": "https://your-dnn-site.com",
      "token": "your-jwt-token",
      "expires": "2025-12-31"
    }
  }
}

Building and Running

cd DnnApiServer
dotnet build
dotnet run

Available Tools

Host Tools

  • get_host: Get DNN host settings
  • clear_cache: Clear DNN cache

Portal Tools

  • get_portal: Get portal details
  • list_portals: List all portals

Adding New Tools

To add new tools, simply add new methods to the DnnTools class:

  1. Open Tools/DnnTools.cs
  2. Add a new method in the appropriate region (or create a new region)
  3. Decorate the method with the [McpServerTool] and [Description] attributes
  4. Rebuild the project

For example:

[McpServerTool]
[Description("Get page details")]
public async Task<string> GetPage(int pageId, int portalId)
{
    var data = await ExecuteCommandAsync(portalId, $"get-page --id {pageId}");
    return JsonSerializer.Serialize(data, new JsonSerializerOptions { WriteIndented = true });
}

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for DNN API Server (.NET C# Version) from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/dnn-dotnet-mcp--server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools