npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@marteye/studio-mcp

v1.0.5

Published

MCP server for Studio with tools to manipulate Studio data using the studiojs SDK

Readme

MCP Studio Server

A Model Context Protocol server providing comprehensive tools for managing livestock auction data through the MartEye Studio platform.

Features

  • Market Management - Access market information and settings
  • Sales Operations - Create, update, and manage auction sales
  • Lot Management - Full CRUD operations on auction lots
  • Customer Management - Handle buyer and seller information
  • Configuration Tools - Manage product codes, tax rates, and adjustments
  • Search Functionality - Query across all market data
  • Real-time Data - Access live auction information
  • Type Safety - Full TypeScript support with Zod validation

API

The server implements 22 MCP tools organized into these categories:

Market Tools

  • get_market - Retrieve market information
  • get_market_settings - Get default market configuration

Sales Tools

  • list_sales - List sales within date ranges
  • get_sale - Get detailed sale information
  • create_sale - Create new auction sales
  • update_sale - Modify existing sales

Lot Tools

  • list_lots - List all lots in a sale
  • get_lot - Get detailed lot information
  • create_lot - Create new lots
  • update_lot - Modify existing lots
  • delete_lot - Remove lots from sales

Customer Tools

  • list_customers - List all market customers
  • get_customer - Get customer details
  • create_customer - Add new customers
  • get_customer_by_account_number - Find customers by account

Configuration Tools

  • list_product_codes - Get product configurations
  • get_product_code - Get specific product details
  • list_tax_rates - Get tax configurations
  • get_tax_rate - Get specific tax rates
  • list_adjustments - Get adjustment configurations
  • get_adjustment - Get specific adjustments

Search Tools

  • search_market - Search across market data

Lot Item Tools

  • create_lot_item - Add items to lots
  • update_lot_item - Modify lot items
  • delete_lot_item - Remove items from lots

Installation

NPX (Recommended)

npx @marteye/studio-mcp

Claude Desktop

To use with Claude Desktop, add the server config:

{
  "mcpServers": {
    "studio": {
      "command": "npx",
      "args": ["@marteye/studio-mcp"],
      "env": {
        "STUDIO_API_KEY": "your-studio-api-key"
      }
    }
  }
}

Local Development

Clone and build:

git clone <repository-url>
cd studio-mcp
npm install
npm run build
npm start

Configuration

Set your Studio API key as an environment variable:

export STUDIO_API_KEY="your-studio-api-key"

Or create a .env file:

STUDIO_API_KEY=your-studio-api-key

Usage Examples

Once connected to your MCP client, you can interact with Studio using natural language:

  • "Show me all sales for market abc123 this week"
  • "Create a new customer with name John Smith in market abc123"
  • "List all lots in sale xyz789"
  • "Search for customers named Smith in market abc123"
  • "Get the product codes for market abc123"
  • "Create a new lot in sale xyz789 with product code SHEEP"

Authentication

All operations require a valid Studio API key. Obtain your API key from your MartEye Studio account and set it as the STUDIO_API_KEY environment variable.

Security Note: Never commit API keys to version control. Use environment variables or secure configuration management.

Error Handling

The server provides detailed error responses for:

  • Authentication failures - Invalid or missing API keys
  • Validation errors - Invalid parameter formats or missing required fields
  • Resource not found - Non-existent markets, sales, lots, or customers
  • Rate limiting - API usage limits exceeded
  • Network issues - Connection problems with Studio API

Development

Build

npm run build

Testing

# Run all tests
npm test

# Run with coverage
npm run test:coverage

# Watch mode
npm run test:watch

Type Checking

npm run typecheck

Data Types

The server handles comprehensive livestock auction data:

  • Markets - Auction house information and settings
  • Sales - Auction events with timing and product specifications
  • Lots - Groups of items being auctioned
  • Customers - Buyer and seller profiles with addresses
  • Product Codes - Item categorization and pricing rules
  • Tax Rates - Jurisdiction-specific tax configurations
  • Adjustments - Commission and fee structures

License

MIT