Logo di Schema.org MCP Server

Schema.org MCP Server

Community
Theycallmeholla

An MCP server for schema.org

AutoreTheycallmeholla
Repositoryschema-org-mcp
LinguaTypeScript
Fork
9
Stelle
21
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Schema.org MCP Server mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    21 stelle e 9 fork nel repository collegato.

Schema.org MCP Server

A Model Context Protocol server for the complete schema.org vocabulary

npm version npm downloads License: MIT Node.js MCP

Empower AI assistants to explore schema.org types, generate JSON-LD examples, validate structured data, and navigate the complete ontology with intelligent fuzzy matching and persistent caching.

Features · Installation · Quick Start · Documentation · Contributing


Table of Contents


Features

v1.1.0 Highlights

FeatureDescription
Persistent CachingSchema.org data cached locally with TTL-based refresh—no cold start delays
Fuzzy MatchingTypo-tolerant lookups with intelligent "Did you mean?" suggestions
Type AliasesNatural language shortcuts: blog → BlogPosting, faq → FAQPage
Filtered PropertiesGet direct-only, inherited-only, or paginated property lists
Batch OperationsCompare types, validate multiple JSON-LD objects, bulk lookups
Dynamic ExamplesGenerated examples use current dates and realistic data

Core Capabilities

  • Type Exploration — Detailed information about any schema.org type with deprecation status
  • Smart Search — Keyword search with relevance-based ranking
  • Hierarchy Navigation — Explore inheritance relationships, ancestors, and descendants
  • Property Discovery — List all properties with expected types, including inherited ones
  • JSON-LD Generation — Create realistic examples at minimal, standard, or comprehensive detail levels
  • Validation — Check structured data against the schema.org vocabulary with actionable feedback
  • Relationship Mapping — Discover types connected through property relationships

Installation

Prerequisites

  • Node.js >= 18.0.0
  • npm or yarn

Install via npm (recommended)

bash
npm install -g schema-org-mcp

Or run directly without installing:

bash
npx schema-org-mcp

Build from Source

bash
# Clone the repository
git clone https://github.com/Theycallmeholla/schema-org-mcp.git
cd schema-org-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Verify the installation
npm start

Quick Start

Integration with Claude Desktop

Add the server to your Claude Desktop configuration:

Via npx (recommended):

json
{
  "mcpServers": {
    "schema-org": {
      "command": "npx",
      "args": ["schema-org-mcp"]
    }
  }
}

Local build:

json
{
  "mcpServers": {
    "schema-org": {
      "command": "node",
      "args": ["/absolute/path/to/schema-org-mcp/dist/index.js"]
    }
  }
}

Available Tools

The server provides 14 tools organized into three categories.

Operational Tools

server_info

Returns server version, build metadata, and runtime information. Use this to verify which version is deployed.

json
{}

Response:

  • version, gitSha, gitBranch, buildTime
  • runtime — Node version, platform, uptime
  • tools — Count and names of registered tools
  • cache — Cache status

server_stats

Returns performance statistics including cache hit rates, tool invocation counts, and timing metrics.

json
{}

Response:

  • coldStartMs, warmStartMs
  • cacheHits, cacheMisses, cacheStaleHits
  • toolInvocations — Per-tool count, errors, average duration
  • uptimeMs

Core Tools

get_schema_type

Retrieve detailed information about a schema.org type. Supports fuzzy matching for typos and natural aliases.

json
{
  "typeName": "Person"
}

Also accepts:

  • Typos: "Persn" → suggests Person
  • Aliases: "blog" → BlogPosting, "faq" → FAQPage

Response:

  • name, description, id, url
  • superTypes — Direct parent types
  • category — core, pending, auto, bib, or health-lifesci
  • deprecated and supersededBy (if applicable)

search_schemas

Search for schema types by keyword with relevance-based ranking.

json
{
  "query": "local business",
  "limit": 10
}

get_type_hierarchy

Get complete inheritance hierarchy including ancestors and children.

json
{
  "typeName": "NewsArticle"
}

get_type_properties

List all properties available for a type with filtering and pagination support.

json
{
  "typeName": "Organization",
  "mode": "direct",
  "includeDeprecated": false,
  "limit": 20,
  "offset": 0
}
ParameterOptionsDefault
modeall, direct, inheritedall
includeDeprecatedtrue, falsefalse
limitNumber—
offsetNumber0

generate_example

Generate realistic JSON-LD examples with dynamic dates and nested types.

json
{
  "typeName": "LocalBusiness",
  "style": "comprehensive",
  "customProperties": {
    "name": "My Coffee Shop"
  }
}
StyleDescription
minimalName property only
standardCommon properties
comprehensiveFull property set with nested types

Supported domain presets: Person, Organization, LocalBusiness, Product, Event, Article, BlogPosting, Recipe, WebSite, FAQPage, Place


get_property_details

Get comprehensive information about a specific property. Supports fuzzy matching.

json
{
  "propertyName": "address"
}

get_enumeration_values

Retrieve all valid values for an enumeration type.

json
{
  "enumerationType": "DayOfWeek"
}

validate_jsonld

Validate JSON-LD structured data with intelligent suggestions for typos.

json
{
  "jsonld": {
    "@context": "https://schema.org",
    "@type": "Product",
    "name": "Widget",
    "nmae": "typo"
  }
}

Response:

  • valid — Boolean result
  • errors — Unknown types or properties with suggestions
  • warnings — Deprecated items, missing context
  • suggestions — Recommended properties to add

get_related_types

Discover types connected through property relationships.

json
{
  "typeName": "Person"
}

Batch Tools

get_multiple_types

Retrieve information about multiple types in a single call.

json
{
  "typeNames": ["Person", "Organization", "LocalBusiness"]
}

compare_types

Compare 2–5 schema.org types side by side with usage recommendations.

json
{
  "typeNames": ["Article", "BlogPosting", "NewsArticle"]
}

Response:

  • types — Summary of each type
  • sharedProperties — Properties common to all
  • uniqueProperties — Properties unique to each
  • recommendation — When to use each type

validate_jsonld_batch

Validate multiple JSON-LD objects in a single call.

json
{
  "items": [
    { "@context": "https://schema.org", "@type": "Person", "name": "John" },
    { "@context": "https://schema.org", "@type": "Organization", "name": "Acme" }
  ]
}

Example Workflows

E-commerce Product Page

1. search_schemas      → {"query": "product"}
2. compare_types       → {"typeNames": ["Product", "Offer", "AggregateOffer"]}
3. get_type_properties → {"typeName": "Product", "mode": "direct", "limit": 15}
4. generate_example    → {"typeName": "Product", "style": "comprehensive"}

Article vs BlogPosting Decision

1. compare_types → {"typeNames": ["Article", "BlogPosting"]}

   Response includes recommendation:
   "Use BlogPosting for blog content with clear publication dates and author.
    Use Article for general news or editorial content."

Bulk Markup Validation

1. validate_jsonld_batch → {"items": [...array of JSON-LD objects...]}

   Returns per-object validation with actionable suggestions

Typo Recovery

1. get_schema_type → {"typeName": "Perosn"}

   Error: "Type 'Perosn' not found. Did you mean: Person, Physician, Performer?"

How It Works

Caching Architecture

The server fetches the complete schema.org vocabulary and implements a multi-layer cache:

LayerLocationBehavior
MemoryRuntimeInstant access after first load
Disk~/.cache/schema-org-mcp/schema-org-data.jsonPersists across restarts
  • TTL: 24 hours (configurable)
  • Fallback: Uses stale cache if schema.org is unavailable

Fuzzy Matching Pipeline

  1. Check natural language aliases (blog → BlogPosting)
  2. Attempt case-insensitive and normalized matching
  3. Calculate similarity scores using Levenshtein distance
  4. Return top 3 suggestions if score > 0.4

Indexed Data

CategoryCount
Types (classes)~800+
Properties~1,400+
Enumeration types~80+

Configuration

The client accepts optional configuration parameters:

typescript
const client = new SchemaOrgClient({
  cacheDir: '/custom/cache/path',    // Default: ~/.cache/schema-org-mcp
  ttlMs: 12 * 60 * 60 * 1000,        // Default: 24 hours
  offline: false,                     // Default: false
});

Development

bash
# Watch mode for development
npm run dev

# Run the test suite
npm test

# Build for production (generates build fingerprint)
npm run build

# Run full QA checklist
npm run qa

# Verify deployment
npm run verify

Deployment

Build with Fingerprint

Every build embeds version metadata for traceability:

bash
npm run build
# Output: Build info generated: v1.1.0 (abc1234)

Verify Deployment

Confirm the correct version is running:

bash
npm run verify

# Or with explicit version:
npm run verify 1.1.0 abc1234

Verification checks:

  1. Version and git SHA match
  2. compare_types tool responds correctly
  3. Fuzzy matching returns suggestions
  4. FAQPage examples include mainEntity
  5. Cache status is available

Runtime Fingerprint

On startup, the server logs its identity:

═══════════════════════════════════════════
schema-org-mcp v1.1.0 (abc1234)
Built: 2025-04-04T15:00:00.000Z
Branch: main
Node: v22.20.0
Tools: 14 registered
  server_info, server_stats, get_schema_type, ...
═══════════════════════════════════════════

Use the server_info tool to check the running version programmatically.


Troubleshooting

Slow Cold Start

If the first request is slow, the cache may have expired:

bash
ls -la ~/.cache/schema-org-mcp/

Fuzzy Suggestions Not Appearing

Ensure schema data is fully loaded. The initialize() method must complete before fuzzy matching works.

Force Cache Refresh

Delete the cache directory to fetch fresh data:

bash
rm -rf ~/.cache/schema-org-mcp/

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please ensure all tests pass before submitting.


License

This project is licensed under the MIT License — see the LICENSE file for details.


Back to Top

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "your-org-schema-org-mcp": {
      "command": "",
      "args": []
    }
  }
}

Usa MCP Schema.org MCP Server con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Schema.org MCP Server, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Schema.org MCP Server come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Schema.org MCP Server.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "your-org-schema-org-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schema-org-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Schema.org MCP Server, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Schema.org MCP Server.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Schema.org MCP Server per aiutarmi con questa attività?
Schema.org MCP Server
Certo. Ho letto.
Ecco cosa ho trovato con Schema.org MCP Server.

Domande frequenti

A cosa serve il server MCP Schema.org MCP Server?

Schema.org MCP Server è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Schema.org MCP Server MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Schema.org MCP Server con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Schema.org MCP Server con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Schema.org MCP Server, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Schema.org MCP Server MCP a TypingMind?

Schema.org MCP Server funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Schema.org MCP Server MCP in TypingMind?

Schema.org MCP Server mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Schema.org MCP Server MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Schema.org MCP Server richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇