project-structure

A set of project-structure guidelines for an Atlan MCP server, including suggested files, folders, and responsibilities. Atlan is the data-governance system this server is designed to connect to.

In plain words
What is it for?
Planning or reviewing the structure of an Atlan MCP server and understanding where its server, client, settings, tool, and documentation files belong.
Why use it?
It gives developers a consistent layout for the server, making the main entry point, settings, client code, tools, and documentation easier to find.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/atlanhq/agent-toolkit/project-structure
Clone the repo
git clone --depth 1 https://github.com/atlanhq/agent-toolkit

Made for: Cursor.

Per session 1,104 This file is loaded in full into every session.
When invoked 1,104 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01104 $0.01104
Opus 5 $0.00552 $0.00552
Sonnet 5 $0.00221 $0.00221
Haiku 4.5 $0.00110 $0.00110

Measured 2d ago against content hash 9d4434d26b03, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-structure 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 2d 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.

modelcontextprotocol/.cursor/rules/project-structure.mdc · 161 lines

How it starts

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

Atlan MCP Server Project Structure

This document outlines the recommended project structure for the Atlan MCP server.

Directory Structure

modelcontextprotocol/
├── .cursor/                  # Cursor IDE specific files
├── .gitignore                # Git ignore file (Assumed)
├── .python-version           # Python version specification
├── client.py                 # Atlan client factory
├── pyproject.toml            # Project metadata and dependencies
├── README.md                 # Project documentation
├── server.py                 # MCP server entry point
├── settings.py               # Application settings
├── tools.py                  # Main tool registration/definition file
├── uv.lock                   # uv lock file
└── tools/                    # Directory for tool implementations/modules

Key Components

server.py

The main entry point for the MCP server. Registers and exposes tools defined in the tools/ directory to interact with Atlan.

from mcp.server.fastmcp import FastMCP
from tools import (
    search_assets,
    get_assets_by_dsl,
    traverse_lineage,
    update_assets,
    UpdatableAttribute,
    CertificateStatus,
    UpdatableAsset,
)
from pyatlan.model.fields.atlan_fields import AtlanField
from typing import Optional, Dict, Any, List, Union, Type
from pyatlan.model.assets import Asset
from pyatlan.model.lineage import LineageDirection

mcp = FastMCP("Atlan MCP", dependencies=["pyatlan"])

# Note: Docstrings and full parameter lists omitted for brevity.
# Refer to the actual server.py and tools implementations for details.

@mcp.tool()
def search_assets_tool(
    conditions: Optional[Union[Dict[str, Any], str]] = None,
    # ... many other parameters ...
):
    """Advanced asset search using FluentSearch with flexible conditions."""
    return search_assets(conditions=conditions, ...)

@mcp.tool()
def get_assets_by_dsl_tool(dsl_query: Union[str, Dict[str, Any]]):
    """Execute the search with the given DSL query."""
    return get_assets_by_dsl(dsl_query)

@mcp.tool()
def traverse_lineage_tool(
    guid: str,
    direction: str, # UPSTREAM or DOWNSTREAM
    # ... other parameters ...
):
    """Traverse asset lineage in specified direction."""
    return traverse_lineage(guid=guid, direction=direction, ...)

@mcp.tool()
def update_assets_tool(
    assets: Union[UpdatableAsset, List[UpdatableAsset]],
    attribute_name: UpdatableAttribute,
    attribute_values: List[Union[CertificateStatus, str]],
):
    """Update one or multiple assets with different values for the same attribute."""
    return update_assets(assets=assets, attribute_name=attribute_name, attribute_values=attribute_values)

Read the full file on GitHub · 161 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. 2d ago First seen · 161 lines · 1,104 tokens per session scan A 9d4434d26b03

Subscribe to this mod's changes

project-structure is a cursor rule published in the GitHub repository atlanhq/agent-toolkit (32 stars, last pushed 4d ago), licensed MIT. It adds 1,104 tokens to every session, about $0.0055 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-30.