Look up National Stock Number lists with Gemini and Microsoft Copilot
Gemini and Copilot can use NSN Lookup through its MCP server (developer tools) or its REST API. Where an assistant cannot connect yet, NSN Lookup's list upload still turns your National Stock Number list into a quote.
Steps
Gemini CLI and Gemini in developer tools
Add an MCP server entry named nsnlookup with the URL https://api.nsnlookup.com/mcp and your API key in the Authorization header (Bearer nsn_...). Keys are free on your NSN Lookup account page.
GitHub Copilot in VS Code and Visual Studio
Add the same MCP server in Copilot's MCP settings (agent mode). Copilot can then read a CSV in your workspace and look up each NSN.
Microsoft 365 Copilot and the Gemini app
Where custom MCP connectors are not available yet, upload the list to NSN Lookup instead (Send us your NSN list) and get one quote for the whole list by email.
Run the prompts
Use the prompts below with the sample CSV.
Prompts to copy
Read nsn-list.csv. For each National Stock Number, call the nsnlookup lookup_nsn tool and get_checkout_link. Write results.csv with NSN, item name, in stock, condition, price, lead time, buy link and RFQ link.
For each NSN in the list, call GET https://api.nsnlookup.com/v19/nsn/{nsn} with header X-Api-Key and collect itemName and links.buy / links.rfq into a table.What the result looks like
| NSN | Item name | In stock | Condition | Price | Lead time | Buy / RFQ |
|---|---|---|---|---|---|---|
| 5305-00-068-0502 | Screw, cap, hexagon head | Yes (120) | New | $1.85 ea (example) | Ships in 1-2 days | Buy |
| 5310-00-045-3299 | Nut, self-locking | Yes (40) | New surplus | $0.60 ea (example) | Ships in 1-2 days | Buy (40) + RFQ (60) |
| 2940-01-234-5678 | Filter element, fluid | No | - | - | Quote: about 2-3 weeks | RFQ |
| 6150-01-123-4567 | Cable assembly, special purpose | No | - | - | Quote needed | RFQ |
| 4730-00-012-3456 | Adapter, straight, pipe | Yes (75) | New | $4.10 ea (example) | Ships in 1-2 days | Buy |
Try it with your own list
Free account, no card. Connect NSN Lookup to your AI assistant in about two minutes.
Try it free Or send us your NSN list