# Lexicon Garden

> Lexicon Garden is a free MCP server for developer tools. Read-only MCP server for resolving, searching and validating AT Protocol lexicons. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API
- **Website:** https://lexicon.garden/help/mcp
- **MCP Registry name:** garden.lexicon/lexicon-garden
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-20

## About

Lexicon Garden's MCP endpoint gives AI assistants direct access to AT Protocol lexicon schemas, the JSON definitions that describe records, queries and procedures across the network. An agent can resolve an NSID the way a protocol client would, looking up the authority through DNS and reading the schema record, or search by keyword or by plain-language description when the exact NSID is unknown.

Beyond lookup, the server can validate a schema document and check data against it, compare two schema versions to flag breaking changes with migration guidance, and find which permission-set lexicons cover a given list of collections or XRPC methods, which helps when working out OAuth scopes for an application. Browsing the namespace tree is also exposed as a resource.

It needs no credentials and only reads data, so it suits developers building on AT Protocol who want their AI tools to check schemas rather than rely on memory. The endpoint uses the Streamable HTTP transport and connects from clients such as Claude Desktop.

## Features

- **Schema resolution by NSID:** Fetches a lexicon through the same DNS and record lookup steps a standard AT Protocol client uses.
- **Keyword and semantic search:** Finds lexicons by the words in their schemas or by a plain description of the behaviour wanted.
- **Schema validation:** Checks a lexicon document and optionally validates params, input or record data against it.
- **Version compatibility checks:** Compares two schema versions and classifies changes as breaking or non-breaking.
- **OAuth permission set discovery:** Lists permission-set schemas and scope strings covering chosen collections or methods.
- **Anonymous read-only access:** Every tool can be called without authentication and none of them write data.

## Good for

- Checking whether a custom record schema is valid before publishing it
- Finding the right NSID for a feature when only its purpose is known
- Determining which OAuth scopes an AT Protocol app should request
- Reviewing whether a schema update will break existing clients
- Validating sample record data against a lexicon inside an AI coding assistant

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http lexicon-garden https://lexicon.garden/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://lexicon.garden/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "lexicon-garden": {
      "url": "https://lexicon.garden/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lexicon-garden": {
      "type": "http",
      "url": "https://lexicon.garden/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lexicon-garden": {
      "serverUrl": "https://lexicon.garden/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://lexicon.garden/mcp
```

Enter a Name (for example "Lexicon Garden"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "lexicon-garden": {
      "type": "http",
      "url": "https://lexicon.garden/mcp"
    }
  }
}
```

## Tools

- `resolve_lexicon`: Resolve an ATProtocol lexicon by NSID: find the DID named by the `_lexicon` TXT record of the NSID's authority and read that DID's com.atproto.lexicon.schema record, from Lexicon Garden's index or, when it is not indexed or refresh is set, from the network. Returns the schema, its AT-URI and CID, the authority DID and where it came from.
- `search_lexicons`: Find ATProtocol lexicons by what their schemas say: descriptions, definition names, field names and known values. Use it when you don't know the NSID. mode "keyword" (default) matches words; mode "semantic" ranks by meaning, so a plain description of what you need works (e.g. 'store a user's reading list'), and it falls back to keyword when unavailable. By default only lexicons published by their 
- `describe_lexicon`: Get detailed information about an ATProtocol lexicon schema: its definitions, authority, CID and any published documentation. Use this to understand the structure and format of XRPC methods, records, and other lexicon types.
- `validate_lexicon`: Validate a lexicon schema and optionally validate data against it. Use this to verify schema correctness and validate records, query params, or procedure inputs against their schemas.
- `check_compatibility`: Check compatibility between two versions of an ATProtocol lexicon schema. Detects breaking vs non-breaking changes and provides migration guidance. Supply either two schema JSON objects directly (from_schema + to_schema), or an NSID with two CIDs to compare stored versions (nsid + from_cid + to_cid).
- `discover_permission_sets`: Discover which ATProtocol permission-set lexicon schemas cover a given set of collections and/or XRPC methods. Returns matching permission sets with their OAuth scope strings (`include:<nsid>`), useful for determining what OAuth scopes an application needs.

## FAQ

### Does the server require an account or API key?

No. The endpoint is read-only and every tool can be called anonymously.

### How do I connect Lexicon Garden to an MCP client?

Configure the client with the server URL https://lexicon.garden/mcp using the Streamable HTTP transport.

### Can Lexicon Garden find a lexicon if I do not know its exact name?

Yes. The search tool accepts keywords or, in semantic mode, a plain description of what the schema should do.

### Does Lexicon Garden change anything on the network?

No. The tools only read and validate; they do not write records.

### Is Lexicon Garden free?

Yes. Lexicon Garden is free to use.

### How do I add Lexicon Garden to Claude Code?

Run this command in your terminal: claude mcp add --transport http lexicon-garden https://lexicon.garden/mcp

### What are the best alternatives to Lexicon Garden?

The closest alternatives to Lexicon Garden are LexOpti developer documentation, Lens MCP, sqry - Semantic Code Search, Sense and Llmref.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 22 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [LexOpti developer documentation](https://ai-powered.com/mcp/lexopti-developer-documentation): LexOpti developer documentation is a free MCP server for developer tools.
- [Lens MCP](https://ai-powered.com/mcp/lens-mcp-2): Lens MCP is an open-source MCP server for developer tools.
- [sqry - Semantic Code Search](https://ai-powered.com/mcp/sqry-semantic-code-search): sqry - Semantic Code Search is an open-source MCP server for developer tools.
- [Sense](https://ai-powered.com/mcp/sense-2): Sense is an open-source MCP server for developer tools.
- [Llmref](https://ai-powered.com/mcp/llmref): Llmref is a free MCP server for developer tools.
- [MCP Documentation Server](https://ai-powered.com/mcp/mcp-documentation-server): MCP Documentation Server is an open-source MCP server for developer tools.
- [AgentDiet Deterministic A2A Broken-JSON Repair & Schema Validator](https://ai-powered.com/mcp/agentdiet-deterministic-a2a-broken-json-repair-and-schema-va): AgentDiet Deterministic A2A Broken-JSON Repair & Schema Validator is a paid MCP server for developer tools.
- [Lexicon](https://ai-powered.com/mcp/lexicon-2): Lexicon is a free MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/lexicon-garden
