Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PYDANTIC_MCP_HOSTNoThe host address to bind to when using HTTP transport.
PYDANTIC_MCP_PORTNoThe port number to bind to when using HTTP transport.
PYDANTIC_MCP_TRANSPORTNoTransport method for the MCP server (e.g., 'stdio' or 'http').
PYDANTIC_MCP_ERROR_HISTORY_LIMITNoLimit for the number of errors kept in history.
PYDANTIC_MCP_ALLOWED_IMPORT_ROOTSNoRoots allowed for imports (e.g., paths to your application code).
PYDANTIC_MCP_DEFAULT_SCAN_PACKAGESNoPackages to scan for Pydantic models by default.
PYDANTIC_MCP_IMPORT_TIMEOUT_SECONDSNoTimeout for importing packages in seconds.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_modelsC

Discover exported Pydantic models in configured packages.

inspect_typeC

Resolve a Python type annotation or model into a structured description.

explain_modelC

Turn a model or type into a human-readable contract.

validate_dataC

Validate input against a model name or Python type expression.

serialize_dataD

Dump validated data using Pydantic serialization behavior.

generate_json_schemaC

Generate JSON Schema for a model or type.

create_example_payloadB

Generate example valid and invalid payloads for a target model or type.

compare_validation_modesC

Compare model, TypeAdapter, strict, and JSON-vs-Python validation behavior.

migrate_v1_to_v2C

Analyze a snippet or model source for common Pydantic v1-to-v2 migration issues.

parse_partial_jsonC

Best-effort parse partial JSON, then validate the parsed fragment.

generate_model_from_jsonC

Infer candidate Pydantic models from a JSON string or JSON-like payload.

Prompts

Interactive templates invoked by user choice

NameDescription
explain modelExplain a model's fields, constraints, defaults, aliases, and edge cases.
generate api contract docsTurn a model or schema into docs for API consumers.
debug validation errorGiven a validation trace, suggest the smallest payload fix.
design a model from example jsonInfer a candidate Pydantic model from sample payloads.
review schema compatibilityCompare two models or schemas for breaking changes.
migrate to pydantic v2Inspect code and produce a migration checklist.

Resources

Contextual data attached and managed by the client

NameDescription
server_capabilities
project_settings
project_import_roots
recent_errors
migration_rules
models_index
changed_models
reference_overview

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BitingSnakes/pydantic-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server