MCPpedia last refreshed this data
.NET 10 Web API Into An MCP Server is an MCP server that provides other tools to AI agents. Its tool list has not been published yet over sse and http, requires no API key, and scores 65/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"net-10-web-api-into-an-mcp-server": {
"url": "<see-readme-for-url>"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Source code for the Core Knowledge Sharing video. An ASP.NET Core Web API (.NET 10, EF Core, PostgreSQL) that is also an MCP server, so an AI assistant such as Claude Code or GitHub Copilot can read product data through three read-only tools and nothing else.
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.
Click any tool to inspect its schema.
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
deja-vu: local memory over the session histories of forty-three coding agents.
专门为 agent 打造的 agent 搜索工具,具备多语言搜索能力,覆盖中文/英文/学术/代码/购物/金融/新闻/百科。
Searchable football data provider documentation for AI coding agents. Like Context7 for football data.
Create a Scandit account, get trial license keys and set up the Scandit SDK in your app.
MCP Security Weekly
Get CVE alerts and security updates for .NET 10 Web API Into An MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Source code for the Core Knowledge Sharing video. An ASP.NET Core Web API (.NET 10, EF Core, PostgreSQL) that is also an MCP server, so an AI assistant such as Claude Code or GitHub Copilot can read product data through three read-only tools and nothing else.
| Tool | What it does |
|---|---|
search_products | Search products by name, at most 20 results |
get_product | Get one product by id |
low_stock | Products with stock below a number, lowest first, at most 20 |
Every tool uses AsNoTracking(), Take(20) and returns ProductDto (Id, Name, Price, Stock). CostPrice and Supplier never reach the AI. There is no delete, no update and no "run any SQL" tool, on purpose.
The normal ProductsController (full CRUD for your own app) is unchanged and is not exposed to the AI.
Requirements: .NET 10 SDK and PostgreSQL.
appsettings.json has a placeholder password; pass the real one through an environment variable instead of committing it:
export ConnectionStrings__Default="Host=localhost;Port=5432;Database=productsdb;Username=postgres;Password=<your password>"
(PowerShell: $env:ConnectionStrings__Default = '...')dotnet run. The database is created and seeded on first start (EnsureCreated, demo only). The API listens on http://localhost:5080 and the MCP endpoint is http://localhost:5080/mcp..mcp.json in this folder already points at the MCP endpoint. In a second terminal:
claude --tools ""
--tools "" turns off Claude Code's own shell and file tools, so the only tools it has are the three from this API. The first time, Claude asks whether to use the server from .mcp.json; choose to use it. Type /mcp to see products-api with 3 tools, then ask "which products are running low on stock?".
--tools "" needs a shell that passes an empty argument: Git Bash, cmd or PowerShell 7 (Windows PowerShell 5.1 drops it).
.vscode/mcp.json is the same server in VS Code's format (top-level key servers). Click Start above the server in that file, open Copilot Chat in Agent mode, and in the tools list keep only the three products-api tools ticked (untick the terminal and file-editing tools).
CREATE ROLE ai_reader LOGIN PASSWORD 'change-me';
GRANT SELECT ON ALL TABLES IN SCHEMA public TO ai_reader;
Use this user for the connection behind the MCP tools; keep the normal user for your controllers.
.NET 10 · ModelContextProtocol.AspNetCore 2.2.0 · Npgsql.EntityFrameworkCore.PostgreSQL 10.0.0
Created by Ankush Agnihotri · ankush1802@outlook.com