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

@loc-ai/mcp-server

v0.2.0

Published

MCP server for remote local seo automation using Loc.ai

Readme

@loc-ai/mcp-server

A Model Context Protocol server that provides SEO and local search analytics capabilities. This MCP server enables large language models to analyze search volumes, domain keywords, locations, and rankings without requiring complex API integrations.

Features

  • Keyword Analytics: Get search volume data for keywords in specific cities and DMAs
  • Domain Intelligence: Discover top keywords for any domain
  • Location Data: Retrieve all business locations for a given domain
  • Ranking Analysis: Access comprehensive ranking data including GMB ratings
  • Local SEO Insights: Analyze keyword rankings in specific Designated Market Areas (DMAs)

Tools

| Tool Name | Description | Required Parameters | |-----------|-------------|---------------------| | get_keyword_search_volume | Get search volume of a keyword in a city's DMA | keyword, city | | get_domain_keywords | Get keywords for a domain | domain | | get_domain_locations | Get all locations of a domain | domain | | get_domain_rankings | Get rankings of a domain with GMB ratings | domain | | get_location_rankings | Get keyword rankings for a location in a DMA | location, dma |

Configuration

Environment Variables

The @loc-ai/mcp-server requires the following environment variable:

  • LOC_AI_API_KEY: Your Loc AI API key (required). Sign up at https://loc.ai to get your API key.

NPX Configuration

Add this to your .mcprc file:

{
  "mcpServers": {
    "loc-ai": {
      "command": "npx",
      "args": ["-y", "@loc-ai/mcp-server"],
      "env": {
        "LOC_AI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Data Models

Keyword Search Volume

interface KeywordSearchVolume {
  keyword: string;
  dma: string;
  city: string;
  monthlySearchVolume: number;
  competition: 'low' | 'medium' | 'high';
  cpc: number;
}

Domain Keywords

interface DomainKeyword {
  keyword: string;
  position: number;
  searchVolume: number;
  cpc: number;
  competition: 'low' | 'medium' | 'high';
  difficulty: number;
}

Domain Locations

interface DomainLocation {
  id: string;
  name: string;
  address: string;
  city: string;
  state: string;
  zipCode: string;
  dma: string;
  latitude: number;
  longitude: number;
  phone: string;
  website: string;
}

Domain Rankings

interface DomainRanking {
  domain: string;
  overallRank: number;
  organicVisibility: number;
  organicKeywords: number;
  paidVisibility: number;
  paidKeywords: number;
  backlinks: number;
  gmbRating: 'good' | 'average' | 'poor';
  localRankings: {
    dma: string;
    position: number;
    keywordCount: number;
  }[];
}

Location Keywords Rankings

interface LocationKeywordRanking {
  location: string;
  dma: string;
  keywords: {
    keyword: string;
    position: number;
    searchVolume: number;
    competitionLevel: 'low' | 'medium' | 'high';
  }[];
}

Example Usage

When properly configured in your model, you can use commands like:

Get the search volume for "dentist near me" in Chicago
Show me the top keywords for apple.com
List all locations for bestbuy.com
What are the rankings for target.com?
Show keyword rankings for "New York Store" in the New York DMA

Development

Setup

  1. Install dependencies:
npm install
  1. Compile TypeScript:
npx tsc
  1. Run the server:
node dist/index.js

Implementation Details

The server is organized into several logical components:

  1. Type Definitions: TypeScript interfaces for all data structures
  2. Tool Definitions: MCP protocol tool specifications
  3. API Service Layer: Handles communication with the Loc AI API
  4. Tool Handlers: Processes tool requests from the language model
  5. Server Setup: MCP server configuration

License

This MCP server is licensed under the MIT License. You are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.