Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"usermanagementmcpserver": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A sample .NET 8 MCP server for managing users with SQLite and demonstrating agent runtime hooks.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
Apify MCP Server
97% token reduction for AI coding sessions — zero deps, 21 languages, MCP server
MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.
MCP Security Weekly
Get CVE alerts and security updates for UserManagementMcpServer and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A sample .NET 8 MCP server for managing users with SQLite and demonstrating agent runtime hooks.
ModelContextProtocolCreateUserGetUserGetAllUsers.NET 8 SDKUserManagementMcpServer/
├── UserManagementMcpServer.csproj
├── Program.cs ← hosting + transport wiring
├── Models/
│ └── User.cs
├── Context/
│ └── UserDbContext.cs ← EF Core DbContext
├── Services/
│ └── UserService.cs
├── Tools/
│ └── UserManagementToolsWithHooks.cs ← MCP tool definitions
├── Hooks/
│ ├── IAgentHook.cs ← hook interfaces
│ ├── HookContexts.cs ← per-hook context types
│ ├── HookService.cs ← built-in hook implementations
│ └── AgentHookManager.cs ← orchestrates hook pipeline
└── Parsing/
└── IntentParser.cs ← console harness only
From the repository root:
dotnet run --project .\UserManagementMcpServer\UserManagementMcpServer.csproj
Available commands:
create user <Name> <Email>get user <Name>show all usersexitdotnet run --project .\UserManagementMcpServer\UserManagementMcpServer.csproj -- --mcp
When running in MCP mode:
The app uses a local SQLite database file:
users.dbThe database is initialized automatically on startup.
The sample hook implementations demonstrate:
admin or rootRegister hooks in Program.cs by adding them to the DI container against the appropriate hook interface. AgentHookManager accepts all five lifecycle hook types via constructor injection.
// Register the hook manager itself
builder.Services.AddSingleton<AgentHookManager>();
// SessionStart — fires once when the first tool call arrives
builder.Services.AddSingleton<ISessionStartHook, SessionInitializationHook>();
// UserPromptSubmit — fires for every tool invocation before any validation
builder.Services.AddSingleton<IUserPromptSubmitHook, AuditLoggingHook>();
// PreToolUse — fires immediately before the tool executes; set Cancel = true to block
builder.Services.AddSingleton<IPreToolUseHook, SecurityValidationHook>();
// PostToolUse — fires after the tool completes; result and duration are available
builder.Services.AddSingleton<IPostToolUseHook, MetricsLoggingHook>();
// Stop — fires before the final response is returned to the MCP client
builder.Services.AddSingleton<IStopHook, ResponseFormattingHook>();
Multiple implementations of the same interface can be registered; they execute in Priority order (lower numbers run first).
dotnet build .\UserManagementMcpServer\UserManagementMcpServer.csproj