XSD Retrieval MCP Server

XSD Retrieval MCP Server

Enables users to retrieve, validate, and analyze XSD files from URLs or local paths, integrating with any LLM model.

Category
Visit Server

README

XSD Retrieval MCP Server

A Model Context Protocol (MCP) server for retrieving and analyzing XSD (XML Schema Definition) files.

Description

This MCP server provides tools for retrieving XSD files from URLs or local paths, validating them, and analyzing their elements. Integrates with any LLM model.

Features

The server provides the following MCP tools:

  1. retrieve_xsd - Retrieve an XSD file from a URL or file path
  2. validate_xsd - Validate if the retrieved content is a valid XSD
  3. list_xsd_elements - List elements defined in an XSD
  4. get_mcp_server_info - Get MCP server information including name and version (v1.2.0+)

Installation

npm install
npm run build

Usage

To run the server:

npm start

The server communicates via stdio and can be integrated with any MCP-compatible client.

Tool: retrieve_xsd

Retrieves an XSD file from a URL or local path.

Parameters:

  • source (string, required): URL or file path to the XSD file
  • save_path (string, optional): Local path where to save the retrieved XSD file

Tool: validate_xsd

Validates if the provided content is a valid XSD.

Parameters:

  • xsd_content (string, required): XSD content to validate

Tool: list_xsd_elements

Lists elements defined in an XSD.

Parameters:

  • xsd_content (string, required): XSD content to analyze

Tool: get_mcp_server_info

Get MCP server information including name and version.

Parameters:

  • None

Recent Improvements (v1.2.0)

  • Enhanced XML/XSD parsing with improved regex patterns for better accuracy
  • Better error handling with graceful degradation for malformed content
  • New get_mcp_server_info tool to retrieve server name and version
  • Improved namespace extraction with proper prefix and URI handling
  • Enhanced element attribute extraction for both self-closing and container elements
  • Better deduplication logic for elements with the same name
  • Added comprehensive test suite with 9 new tests for XML parsing

Contributing

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

License

Distributed under the MIT License. See LICENSE for more information.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured