# NuGet Gallery API and MCP server for AI agents (/sites/nuget)

An API for NuGet Gallery: let Claude, ChatGPT or your own code read NuGet Gallery through 3 functions, over MCP, HTTP, Node or Python. No NuGet Gallery API key needed.

- Site: https://nuget.org
- Functions: 3
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- NuGet Gallery only, one tool per function: `https://api.bowmark.ai/mcp/site/nuget` (name it `bowmark-nuget`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-nuget https://api.bowmark.ai/mcp/site/nuget`
- Codex: `codex mcp add bowmark-nuget --url https://api.bowmark.ai/mcp/site/nuget`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/nuget" }` under the name `bowmark-nuget` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getPackage`: One nuget.org package by exact id: latest version, description, authors, owners, tags, total downloads, URLs and every version with its download…
- `listVersions`: Every published version string of a nuget.org package id, oldest first, from the registry's flat container.
- `searchPackages`: Finds .NET packages on nuget.org by keyword through its v3 search service: id, latest version, description, authors, owners, tags, total downloads…

## Call one

In a Bowmark script, each function is `bowmark.providers.nuget.<name>`. Ask `get_library` for nuget.org to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on nuget.org, and with which arguments?
get_library({ query: "nuget.org" })

// 2. Call it in a script
const result = await bowmark.providers.nuget.getPackage({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
