Back to Blog

How CLAUDE.md Files and MCP Servers Work Together for Project Structure

Fazm Team··2 min read
claude-mdmcpproject-structureintegrationdeveloper-tools

How CLAUDE.md Files and MCP Servers Work Together for Project Structure

CLAUDE.md tells the agent what your project is. MCP servers give the agent tools to work with it. Used separately, each is useful. Used together, they create a workspace where the agent understands both the structure and has the capabilities to act on it.

CLAUDE.md as the Map

Your CLAUDE.md file describes the terrain. The project uses SwiftUI for the frontend. The accessibility API layer lives in Sources/Accessibility/. The MCP server endpoints are defined in mcp-config.json. Build with xcodebuild, test with swift test, deploy with the release script.

This is not documentation for humans - it is operational context for the agent. Every instruction in CLAUDE.md shapes how the agent approaches tasks. Without it, the agent guesses. With it, the agent follows your established patterns.

MCP Servers as the Tools

MCP (Model Context Protocol) servers expose capabilities the agent can call. A file system MCP server lets the agent read and write files with structured permissions. A browser MCP server lets it navigate web pages. A database MCP server lets it query and update data.

Each server defines specific tools with typed inputs and outputs. The MCP protocol makes capabilities discoverable automatically.

The Integration Point

CLAUDE.md references MCP servers and explains when to use them. "Use the playwright MCP server to test UI changes." "Query the database server to check migration status." "Use the GitHub server to create PRs."

The agent reads CLAUDE.md, learns which MCP servers are available, and knows to use them instead of trying workarounds through shell commands. The map tells the agent which tools exist. The MCP servers provide the actual capabilities.

This combination - declarative context plus structured tools - is what turns a language model into a useful project collaborator.

Fazm is an open source macOS AI agent. Open source on GitHub.

Related Posts