Stock API MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Stock API MCP ServerShow me available BMWs under 30,000 euros"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stock API MCP Server
A Model Context Protocol server that provides discovery-first vehicle inventory search through the Stock API. Instead of simple vehicle listings, it offers comprehensive inventory insights with sample vehicles and intelligent refinement suggestions.
🎯 What Makes This Different
This POC implements a discovery-first approach that transforms vehicle search from a simple list into an informative inventory exploration:
📊 Inventory Overview: See total counts by make, fuel type, condition, and body type
📋 Representative Sample: View 10-15 example vehicles from available inventory
💡 Smart Suggestions: Get refinement ideas based on actual inventory
🔍 Transparent Sampling: Understand you're seeing examples, not exhaustive results
Related MCP server: MCP Advisor
Quick Start
Install dependencies:
npm installConfigure API access:
# .env file is already configured with: # STOCK_API_KEY=<replace with your API key> # STOCK_API_COUNTRY=it # STOCK_API_BASE_URL=https://stock-api.dealerk.comRun the server:
npm startTest manually:
npm test
Available Tools
🔍 search_vehicles
Discover vehicle inventory with comprehensive overview and sample listings. Shows total counts by make, fuel, condition plus representative vehicle examples with refinement suggestions.
Example Response Format:
📊 INVENTORY OVERVIEW
Found 123 vehicles total across all dealers
🏷️ BY CONDITION: USED (115), NEW (7), KM0 (1)
⛽ BY FUEL TYPE: Diesel (68), Petrol (20), Hybrid (17)
🚗 BY MAKE: Peugeot (11), Audi (9), BMW (8), Fiat (8)
🚙 BY BODY TYPE: SUV (75), Sedan (29), Hatchback (7)
📋 SAMPLE VEHICLES (showing 15 of 123)
1. 2022 Volvo XC40 • Diesel • 32,000km • €23,900
2. 2025 Dfsk Glory 500 • Petrol • 5,000km • €16,500
3. 2021 Mercedes-Benz Classe A • Hybrid • 28,000km • €19,900
💡 REFINE YOUR SEARCH
• Try "Peugeot" for 11+ Peugeot vehicles
• Filter by "Diesel" for 68 diesel vehicles
• Add "under 25000" for budget-friendly optionsParameters:
make- Vehicle brand filter (BMW, Audi, Fiat, etc.)fuel- Fuel type (DIESEL, PETROL, HYBRID, ELECTRIC)maxPrice- Maximum price in EURminPrice- Minimum price in EURcondition- Vehicle condition (NEW, USED, KM0)limit- Sample size (default 10, max 15)
🚗 get_vehicle_details (Coming Soon)
Get complete information about a specific vehicle by ID.
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"stock-api-mcp": {
"command": "node",
"args": ["/path/to/stock-api-mcp/src/index.js"]
}
}
}Recent Updates
✅ Discovery-First Implementation Complete (September 2025)
Fixed API Response Parsing: Now combines
promoResults+searchResults(38 vehicles vs 12 previously)Added Inventory Overview: Shows total counts with breakdowns by condition, fuel, make, body type
Smart Refinement Suggestions: Provides intelligent next steps based on available inventory
Transparent Sampling: Clear indication when showing sample vs total available vehicles
Technical Improvements
Proper deduplication of vehicle results by ID
Enhanced error handling and logging
User-friendly response formatting with emojis and structure
Discovery-first approach optimized for POC constraints
Testing the Server
Option 1: MCP Inspector (Recommended)
npx @modelcontextprotocol/inspector src/index.jsThen test with queries like:
{"make": "BMW", "limit": 5}{"fuel": "DIESEL", "maxPrice": 30000}{"limit": 10}(for full inventory overview)
Option 2: Direct API Testing
node test.jsOption 3: Claude Desktop Integration
Works seamlessly with Claude Desktop - just ask natural language queries like:
"Show me the available inventory"
"What BMWs are available?"
"Find diesel cars under 25000 euros"
Development Status
✅ Phase 1-2 Complete: Core search functionality with discovery-first approach 🔄 Phase 3-6 Next: Vehicle details tool, natural language parsing, enhanced testing
Architecture Notes
The server implements a discovery-first design pattern that:
Embraces API pagination limitations transparently
Maximizes value from facet data for inventory insights
Provides actionable refinement suggestions
Sets clear expectations about sample vs comprehensive results
Perfect for POCs where comprehensive search isn't feasible but inventory discovery is valuable.
License
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
- AlicenseCqualityCmaintenanceA Model Context Protocol server enabling product searches across e-commerce platforms, price history tracking, and product specification-based searches using natural language prompts.Last updated219MIT
- Alicense-qualityCmaintenanceA discovery and recommendation service that helps AI assistants find Model Context Protocol servers based on natural language queries.Last updated10789MIT
- AlicenseDqualityDmaintenanceA Model Context Protocol server that enables LLMs to explore and interact with API specifications by providing tools for loading, browsing, and getting detailed information about API endpoints.Last updated43014ISC
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI models to interact with Mobi instances, providing structured data exchange and command execution for ontology management, data retrieval, and content creation.Last updated2MIT
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
Search and browse every MCP server in the Model Context Protocol registry.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/loukach/stock-api-mcp-poc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server