StockSpark MCP Server

by loukach

Not rated
GitHub

About

An MCP server for AI-powered vehicle dealership management.

Details

Author
loukach
Categories
Other, Developer Tools

Setup

Install StockSpark MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/loukach/stockspark-mcp-poc

Follow the installation instructions in the repository README, then restart your MCP client.

An MCP server for AI-powered vehicle dealership management.

A production-ready Model Context Protocol (MCP) server that provides AI agents with 36 specialized tools for complete vehicle dealership management through the StockSpark/Carspark API platform.

git clone https://github.com/loukach/stockspark-mcp-poc.git cd stockspark-mcp-poc npm install
# Required - Your StockSpark credentials STOCKSPARK_USERNAME=your-email@dealership.com STOCKSPARK_PASSWORD=your-password # Optional - Override defaults if needed # STOCKSPARK_COUNTRY=it # Default: it # LOG_LEVEL=debug # Default: info

macOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "stockspark": { "command": "node", "args": ["/absolute/path/to/stockspark-mcp-poc/src/index.js"], "env": { "STOCKSPARK_USERNAME": "your-email@dealership.com", "STOCKSPARK_PASSWORD": "your-password" } } } }

- get_user_context- View current company/dealer selection
- list_user_companies- List accessible companies
- select_company- Choose working company
- list_company_dealers- List company's dealers
- select_dealer- Choose working dealer

- search_vehicle_versions- Progressive search for vehicle specifications
- compare_vehicle_versions- Compare similar trims/versions
- get_vehicle_version_template- Get complete vehicle data template
- get_vehicle_makes- List available manufacturers
- get_vehicle_models- Get models for a make
- get_vehicle_trims- Get trim levels with specifications
- get_vehicle_transmissions- Available transmission types
- get_vehicle_bodies- Body style options
- get_vehicle_fuels- Fuel type options
- get_vehicle_colors- Available colors

- add_vehicle- Create new vehicle (template or manual)
- get_vehicle- Retrieve vehicle details
- list_vehicles- Search/filter inventory with sorting
- update_vehicle- Modify vehicle data
- update_vehicle_price- Quick price updates
- delete_vehicle- Remove vehicle (with confirmation)

- upload_vehicle_images- Bulk upload from files/URLs
- get_vehicle_images- List vehicle images
- set_vehicle_main_image- Set primary display image
- delete_vehicle_image- Remove specific images

πŸ“Š Analytics & Intelligence (4 tools)

- get_underperforming_vehicles- Identify slow-moving inventory
- analyze_inventory_health- Overall stock metrics
- apply_bulk_discount- Strategic bulk pricing
- get_pricing_recommendations- AI-powered pricing suggestions

- publish_vehicle- Push to portals (MyPortal, Automobile.it)
- unpublish_vehicle- Remove from portals
- get_publication_status- Check publishing status
- list_available_portals- Show configured channels

- get_vehicle_leads- Customer inquiry tracking
- analyze_lead_trends- Lead performance insights

- get_mcp_performance- System performance metrics

1. search_vehicle_versions β†’ Find specifications 2. get_vehicle_version_template β†’ Get complete data 3. add_vehicle β†’ Create with template + price
1. get_underperforming_vehicles β†’ Find slow movers 2. get_pricing_recommendations β†’ Get AI suggestions 3. apply_bulk_discount β†’ Execute pricing strategy
For files: upload_vehicle_images with file paths For pasted images: Save to disk first, then upload
// Sort by newest first list_vehicles({ sort: "creationDate:desc" }) // Filter by make and model list_vehicles({ make: "BMW", model: "Serie 3" }) // Find vehicles needing images list_vehicles({ hasImages: false }) // Complex filtering list_vehicles({ vehicleType: "USED", kmMax: 50000, maxPrice: 25000, sort: "price:asc" })
"Add a 2023 BMW 320d with 15k km at €45,000" "Show me vehicles over 90 days in stock" "Upload these images to vehicle 12345" "Apply 10% discount to all Mercedes over 60 days" "Publish my best SUVs to all portals"

- AI Agent Guide (CLAUDE.md)- For AI agents working with the codebase
-
Documentation Index- Complete documentation guide
-
Known Issues- Current limitations and fixes

npm test # Run all tests npm run test:unit # Unit tests only npm run test:verbose # Detailed output

- 36 MCP Toolsacross 8 specialized modules
- OAuth2 Authenticationwith auto-refresh
- Multi-tenant Supportfor companies/dealers
- Error Recoverywith retry logic
- Structured Loggingfor debugging
- 70%+ Test Coveragewith real API testing

- STOCKSPARK_USERNAME- Your login email
- STOCKSPARK_PASSWORD- Your password

- STOCKSPARK_COUNTRY- Market (it/fr/de/es), default: it
- LOG_LEVEL- Logging detail (debug/info/warn/error)
- MYPORTAL_ACTIVATION_CODE- For MyPortal publishing
- AUTOMOBILE_IT_ACTIVATION_CODE- For Automobile.it
- STOCKSPARK_API_KEY- For lead tracking features

The following are built into the code and rarely need override:

- Auth URL:https://auth.motork.io/realms/prod/protocol/openid-connect/token
- API URL:https://carspark-api.dealerk.com
- Client ID:carspark-api

- Tool consolidation: 41 β†’ 36 tools (12% reduction)
- Enhanced vehicle search with sorting and smart filtering
- Fixed date field mapping for proper creation dates
- Vehicle deletion with safety confirmation
- Hardcoded API defaults (only username/password required)

- Auto-main image not setting correctly on upload
- hasImagesflag showing false even with images
- Check test output:npm run test:verbose
- Review logs withLOG_LEVEL=debug
- See
KNOWN_ISSUES.mdfor solutions
- Verify credentials in.envfile

Production-ready MCP server providing complete vehicle dealership management for AI agents.

Chia Health MCP Server β€” Patient workflow integration for a licensed US telehealth platform. Browse GLP-1 medications (semaglutide, tirzepatide), peptide therapies (sermorelin, NAD+, glutathione), and longevity treatments. Check eligibility, complete intake, sign consents, and manage treatment plans. 30 tools, HIPAA-compliant. All prescriptions evaluated by licensed US healthcare providers and delivered from FDA-regulated pharmacies across 50 states + DC.

Broker + MCP server for last-bidder-wins games on Solana β€” agents register, auto-fund a Privy wallet, and bid via streamable HTTP

AI-powered no-code app builder with 17 MCP tools β€” create projects, generate pages from natural language, AI text/image generation (GPT, Claude, Gemini, 14+ models), page CRUD, workflow execution, publish & version control. SSE transport, API key auth.

An mcp server for your food ordering needs.

Agent-to-Agent handoff certification for multi-agent systems β€” validates context preservation, verifies agent capabilities before handoff, logs transfer chains, and ensures no data loss in agent orchestration.

Unified MCP & skill management gateway with progressive disclosure. Manages multiple MCP servers as Agent Apps, loading tool schemas on demand for 99% context token savings. Shared across Claude Code, Codex, OpenCode and more.

A collection of Model Context Protocol (MCP) servers for various tasks and integrations, supporting both Python and Node.js environments.

Open-souSecurely feeds real security refreshed rules into Cursor, Claude Code, and Windsurf β€” zero config, no API key.

Health intelligence MCP β€” access biomarkers, biological age, and personalized longevity action plans from your Aniva profile.

Real-time stock heatmaps and investment tools delivered as interactive React components.

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.