DNN API Server
by sachatrauwaen
A Model Context Protocol (MCP) server for DNN Platform written in C# using .NET. It provides tools for interacting with DNN Platform through its APIs.
Last updated: N/A
What is DNN API Server?
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.
How to use DNN API Server?
- Configure the server using environment variables or a JSON site configuration file. 2. Build and run the server using
dotnet build
anddotnet run
. 3. Use the available tools for host and portal management. 4. Extend the server by adding new methods to the DnnTools class, decorating them with[McpServerTool]
and[Description]
attributes.
Key features of DNN API Server
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
Use cases of DNN API Server
Automating DNN host configuration
Managing DNN portals programmatically
Integrating DNN with other systems
Building custom DNN administration tools
FAQ from DNN API Server
What is the Model Context Protocol (MCP)?
What is the Model Context Protocol (MCP)?
The README doesn't define MCP, but it's a protocol for interacting with DNN Platform.
What .NET version is required?
What .NET version is required?
.NET 7.0 or higher is required.
How do I authenticate with the DNN API?
How do I authenticate with the DNN API?
You can authenticate using a username and password, or a JWT token.
Where can I find the DnnTools class?
Where can I find the DnnTools class?
The DnnTools class is located in Tools/DnnTools.cs
.
How do I add a description to my new tool?
How do I add a description to my new tool?
Use the [Description]
attribute above your method definition.