Products API MCP Server
我的第一个 MCP 项目
该项目演示了如何使用 MCP(模型上下文协议)服务器从DummyJSON API 检索数据。使用 Cursor IDE 和默认代理构建。
目录
Related MCP server: openfoodfacts-mcp-server
特征
产品 API 工具
获取产品
描述:获取具有可选过滤和分页功能的产品列表
参数:
id(字符串,可选):按 ID 过滤产品q(字符串,可选):按标题过滤产品category(字符串,可选):按类别过滤产品brand(字符串,可选):按品牌过滤产品price(数字,可选):按价格过滤产品rating(数字,可选):按评级过滤产品skip(数字,可选,默认值:0):要跳过的产品数量limit(数字,可选,默认值:10):返回的最大产品数量
返回:符合指定条件的产品列表
数据来源:DummyJSON API( https://dummyjson.com/products )
安装和使用
先决条件
Node.js(版本 23 或更高版本)
Docker 和 Docker Compose
WSL2(如果使用 Windows)
游标配置
要使用 Cursor 配置此 MCP 服务器:
打开游标
按:
Windows/Linux:
Ctrl + Shift + PmacOS:
Cmd + Shift + P
输入“配置 MCP 服务器”并选择它
根据您的设置添加适当的配置:
对于 Windows(不带 WSL)或 Linux:
{
"mcpServers": {
"postgres": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_PROJECT/src/index.ts"]
}
}
}对于 WSL 用户:
{
"mcpServers": {
"postgres": {
"command": "wsl.exe",
"args": [
"-e",
"ABSOLUTE_PATH_TO_NODE/.nvm/versions/node/v23.11.0/bin/node",
"ABSOLUTE_PATH_TO_PROJECT/src/index.ts"
]
}
}
}要查找您的 Node.js 路径,请运行:
which node执照
该项目已获得 MIT 许可。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA small MCP server that manages a product inventory using SQLite, providing CRUD operations through exposed MCP tools.
- AlicenseAqualityDmaintenanceMCP server for Open Food Facts, enabling food product lookup by barcode, search, nutrition facts, allergen checks, and eco-scores without an API key.8MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for reading, querying, and filtering local JSON files with extended JSONPath syntax, supporting sorting, aggregations, and complex conditions.152MIT
- FlicenseAqualityDmaintenanceAn MCP server that provides tools to interact with the JSONPlaceholder fake REST API for testing and prototyping, supporting CRUD operations on posts, comments, todos, and users.7
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
A basic MCP server to operate on the Postman API.
MCP server for accessing curated awesome list documentation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Demontie/my-first-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server