fabrica-mcp: Instructions file for Claude Code

CLAUDE.md

fabrica-mcp CLAUDE.md is an instructions file for Claude Code from fabrica-land/fabrica-mcp. It costs 2,455 tokens per session, scanned A, original, MIT.

Project instructions for an MCP server that gives AI agents read-only access to Fabrica’s tokenized real-estate data. Fabrica represents land ownership with ERC-1155 NFTs on Ethereum, a blockchain network.

In plain words
What is it for?
Use them when working on the Fabrica MCP server, its property, lending, portfolio, activity, image, or protocol-data tools.
Why use it?
They explain the project structure, data sources, legal context, and safety rules developers must follow before changing code.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is fabrica-land/fabrica-mcp's own configuration. It tells Claude Code how to work on fabrica-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fabrica-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fabrica-land/fabrica-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fabrica-land/fabrica-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/fabrica-land/fabrica-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fabrica-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fabrica-land/fabrica-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/fabrica-land/fabrica-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fabrica-land/fabrica-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/fabrica-land/fabrica-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fabrica-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fabrica-land/fabrica-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/fabrica-land/fabrica-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,455 This file is loaded in full into every session.
When invoked 2,455 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02455 $0.02455
Opus 5 $0.01228 $0.01228
Sonnet 5 $0.00491 $0.00491
Haiku 4.5 $0.00246 $0.00246

Measured 11d ago against content hash 7ff79dce6526, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fabrica-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fabrica MCP Server

An MCP server giving AI agents read-only access to tokenized real property data on the Fabrica protocol.

What is Fabrica?

Fabrica tokenizes real property (land) as ERC-1155 NFTs on Ethereum. A legal trust holds title at the county level. The token controls the trust. Transfer the token, transfer ownership.


Project Structure

src/
  config.ts           # Network config, contract addresses, legal notices
  index.ts            # MCP server entrypoint — registers all 11 tools
  tools/
    properties.ts     # search_properties, get_property, get_property_map
    lending.ts        # get_lending_market
    portfolio.ts      # get_portfolio
    protocol.ts       # get_protocol_stats
    scoring.ts        # explain_confidence_score
    borrowing.ts      # get_borrow_quote
    activity.ts       # get_activity
    images.ts         # get_property_image, get_portfolio_image
  clients/
    graphql.ts        # Fabrica GraphQL API client (primary data source)
    subgraph.ts       # MetaStreet pool subgraph client (dynamic pool discovery)
  types/
    index.ts          # Shared TypeScript interfaces
  __tests__/          # vitest test suite

Tech Stack

  • TypeScript (strict mode), ESM, Node 20+
  • @modelcontextprotocol/sdk (McpServer class with zod schemas, stdio transport)
  • graphql-request for GraphQL clients
  • tsup for building (ESM, dts: false due to TS6 deprecation)
  • vitest for testing
  • Not yet published to npm — installed from source

Data Sources

1. Fabrica GraphQL API (Primary)

Endpoint: https://api.fabrica.land/graphql (Apollo Server, public, no auth)

The Apollo API routes subgraph data internally, so all onchain and offchain property data is available through it.

Key API behaviors:

  • tokens query has NO first/skip pagination. Returns all matching tokens. Pagination is client-side.
  • Nested fields loans, marketplaceListings, marketplaceBids are NOT available on list queries (tokens list, wallet.tokens). Use scalar fields (supplyUnderLoan, marketplacePrice, loanOfferCount) instead. Nested fields only work on single token() queries.
  • loans query requires network or networkIn — errors without one.
  • loanStartedEvents, loanRepaidEvents, loanLiquidatedEvents require first! and skip! (non-nullable).
  • Score is a raw integer (e.g. 73242). Kept as-is. The minScore filter expects this integer scale.
  • estimatedValue is a string decimal (e.g. "396647.43"). acres is also a string.

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 216 lines · 2,455 tokens per session scan A 7ff79dce6526

Subscribe to this mod's changes

fabrica-mcp CLAUDE.md is an instructions file published in the GitHub repository fabrica-land/fabrica-mcp (0 stars, last pushed 4d ago), licensed MIT. It adds 2,455 tokens to every session, about $0.0123 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens