home / mcp / mcp json yaml toml mcp server
Provides token-efficient, schema-aware access to JSON, YAML, and TOML files with safe, validated modifications.
Configuration
View docs{
"mcpServers": {
"bitflight-devops-mcp-json-yaml-toml": {
"command": "uvx",
"args": [
"mcp-json-yaml-toml"
]
}
}
}You use this MCP server to give AI assistants a safe, schema-aware interface for reading and modifying JSON, YAML, and TOML files. It validates changes, preserves structure and comments when possible, and works locally for reliable, repeatable data edits.
You interact with the server through an MCP client. Start the server in your development environment, then configure your MCP client to connect either locally (stdio) or via an MCP endpoint if your setup provides one. When you perform data operations, you can get, set, or delete values at specific paths, transform data between formats, and validate against schemas before writing.
Prerequisites are installed on your machine before you begin.
Install Python (version 3.11 or newer) and ensure it is available on your PATH.
Install a compatible MCP client (for example, UVX-based tools that can run MCP servers). Ensure you have one that can run the mcp-json-yaml-toml server.
Clone or set up your environment to run the server locally via the MCP tooling you use.
Run the server using the MCP tooling as shown in the configuration example.
Configuration focuses on how you connect your MCP client to the server and what tools are available. The server exposes a set of data-oriented tools you can use to read, modify, and convert structured data safely.
Available data operations include getting, setting, or deleting values at paths, performing transformations between JSON, YAML, and TOML, and validating data against schemas before applying changes.
LMQL support enables guided generation with incremental validation of partial inputs so you can iteratively refine queries before execution.
If you encounter environment or runtime issues, verify your Python version and that the MCP client can reach the server. Check that the server command and arguments match what your MCP client expects for stdio connections.
Get, set, or delete values at specific paths within JSON, YAML, or TOML files.
Apply advanced transformations using yq/jq-like expressions to extract or reshape data.
Manage schemas and validate files against those schemas to ensure correctness.
Convert between JSON, YAML, and TOML formats while preserving structure.
Deep merge two or more structured data files with controlled conflict resolution.
Validate inputs against LMQL constraints to guide generation with safe boundaries.
List available generation constraints for proactive validation.