claude-projects-mcp-server
The server provides terminal-based read and write access to Claude Cowork/claude.ai projects and their documents, bridging the web UI and terminal. It supports full lifecycle management with robust safety features.
Project Management: List, view details (including instructions), create (optionally private with instructions), update (name, description, instructions), and delete projects (with mandatory exact name confirmation and local backup of all documents). Works across multiple organizations with automatic discovery.
Document Management: List documents (with duplicate detection), read (by name or UUID), write/overwrite (with local backup and optional
expected_uuidconcurrency control), rename (safe recreation), and delete (with local backup). Requires explicitoverwrite=truefor replacements.Bulk Sync: Pull all project documents to a local folder (overwrite option), push local files to a project (skips unchanged, never deletes remote-only documents, supports
dry_runpreview).Safety & Security: Authenticates via session cookie, performs local backups before destructive operations, requires confirmation for project deletion and overwrites, and uses optimistic concurrency checks to prevent overwriting changes.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-projects-mcp-serverlist my projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Claude Projects MCP Server
An MCP server that gives Claude Code read and write access to Claude Cowork / claude.ai projects and the knowledge documents ("Context" files) inside them.
Cowork keeps a team's shared documents inside the web UI, where Claude Code cannot see them. This server closes that gap, so notes written in Cowork can be read, edited, and written back from the terminal — and the projects that hold them can be created, renamed, and retired without leaving the editor.
Unofficial. This uses the same undocumented endpoints the claude.ai browser app uses, authenticated with a
sessionKeycookie. Anthropic can change or break them without notice. Endpoint shapes were derived from guidodinello/claude-client.
Status
All twelve tools are implemented and covered by 271 tests, and the full read-and-write path has been verified against the real API — tests/live/test_contract.py round-trips a document through create, read, replace, and delete, and a project through create, read, update, and delete.
What that established, and what the implementation now relies on:
A Cowork project is a classic claude.ai project, at
/organizations/{organization}/projects/{uuid}. There is no separate Cowork API surface.Organization and document listings are bare JSON arrays with no pagination envelope.
Projects are listed through
projects_v2, which wraps its rows in{data, pagination}. That envelope is the reason for preferring it: a bare array cannot distinguish "that is all of them" from "that is the first thirty", so a truncated answer would be indistinguishable from a complete one. The client walks every page.Document listings include
content, so reading costs one request rather than two.Two documents may share a
file_name, which is what lets a save create the replacement before deleting the original rather than the other way round.Projects have no such limitation:
PUTtakes a partial body, so an update touches only the fields it is given.Project instructions (
prompt_template) come back only from a single-project fetch — never from a listing or a create response, which is whyget_projectexists separately.
Response shapes captured from the real API live in tests/fixtures/ and are asserted against by tests/test_fixtures.py, which stops the in-memory fake drifting away from what claude.ai actually sends.
Related MCP server: Axme-code
Setup
Everything below runs through uv — uvx ships with it — so install that first:
curl -LsSf https://astral.sh/uv/install.sh | shOther installation methods (Windows, Homebrew, pip) are in uv's installation documentation.
Get the session key from claude.ai in a browser: DevTools → Application → Cookies → sessionKey (starts with sk-ant-sid02-, or sid01- on older accounts).
It expires periodically; when a tool reports a 401, copy a fresh one.
Put it in an env file anywhere (.env.example lists every key the server reads):
CLAUDE_PROJECTS_SESSION_KEY=sk-ant-sid02-...Register with Claude Code straight from this repository — no clone needed:
claude mcp add claude-projects -- uvx --env-file /path/to/.env --from 'git+https://github.com/Attacktive/claude-projects-mcp-server@main' claude-projects-mcpuv caches the commit it resolves, so a later push to main is not picked up automatically; run uv cache clean claude-projects-mcp-server to update, or pin a tag instead of @main to move only on releases.
From a local checkout (development)
uv sync
cp .env.example .env # then fill in CLAUDE_PROJECTS_SESSION_KEY
claude mcp add claude-projects -- uv run --directory /path/to/claude-projects-mcp-server claude-projects-mcpRun this way, the server finds the .env sitting next to the project by itself; --env-file is only needed for the git-URL form, whose install location is an ephemeral virtual environment managed by uv.
Tools
Tool | Purpose |
| Projects across every chat-capable organization, each tagged with its organization |
| One project, including its instructions — which a listing does not carry |
| Start a project, optionally private and with instructions |
| Change name, description, or instructions; untouched fields are left alone |
| Remove a project and every document in it (see Safety) |
| Documents in a project, flagging any duplicate file names |
| One document by uuid or file name |
| Create, or replace with |
| Move a document to a new file name; a name already in use needs |
| Remove a document (always backed up first) |
| Copy a project's documents into a local folder |
| Upload a local folder's documents into a project |
Every tool that acts on a project takes an explicit project_id; only list_projects and create_project are account-wide.
Start with list_projects to find the uuid, or take it from the URL: https://claude.ai/cowork/project/<this-part>.
The session key is the only required setting; CLAUDE_PROJECTS_BACKUP_DIRECTORY, CLAUDE_PROJECTS_BASE_URL, and CLAUDE_PROJECTS_IMPERSONATE optionally override where backups land, which host is spoken to, and which browser fingerprint curl_cffi presents.
Which organization owns a project is worked out by searching — one listing per organization per session, cached — so a project is reachable wherever on the account it lives, and nothing can be pointed at the wrong place.
Safety
These are shared team documents, and the API has no server-side undo, so:
replacing an existing document requires an explicit
overwrite=truethe previous content is written to a local backup directory before any replacement
write_documentaccepts anexpected_uuidto refuse the write if a teammate changed the document since you read itrename_documentre-creates the content under the new name before deleting the original — the API has no rename, so a crash midway leaves the document under both names rather than under nonepush_documentsnever deletes remote documents that are missing locally — it is not a mirror
delete_project is the sharpest tool here, because it takes every document with it.
It is deliberately awkward: confirm_name must match the project's current name exactly, and every document is copied to the backup directory before anything is deleted.
If that copy fails for any document, the project is left standing.
The backup directory is not an undo feature.
It captures only what this tool overwrites, it lives on one machine, and it knows nothing about edits made by teammates in the web UI.
One known gap: when an interrupted save has left several documents sharing a name, a replacing write backs up only the newest before removing them all — if a teammate may have edited an older duplicate, check it with read_document first, as its warning suggests.
Do not describe it to the team as a safety net.
Credentials
CLAUDE_PROJECTS_SESSION_KEY is a full personal claude.ai account credential — it can read every conversation on the account and act as you.
Keep it in .env (git-ignored), never share it, and never deploy a hosted instance that serves several people from one key.
Development
uv run pytest tests/ -v # full suite, no network
CLAUDE_PROJECTS_LIVE_TESTS=1 uv run pytest tests/live -v # real round-trip against claude.ai
uv run ruff check .Tests never touch the network except tests/transport (a local HTTP server) and tests/live (opt-in).
Everything else runs against an in-memory fake of the API.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides Claude Desktop with direct access to your local file system for development tasks, enabling file operations (read, write, edit), directory browsing, command execution, and codebase search within a configured projects directory.6MIT
- Alicense-qualityAmaintenancePersistent project memory + architectural decisions + pre-execution safety hooks for Claude Code. Local-only storage, multi-repo workspace, automatic knowledge extraction via background auditor.1914MIT
- AlicenseBqualityCmaintenanceEnables Claude Code to interact with Jupyter notebooks, perform semantic search over knowledge files, and manage research projects.334MIT
- AlicenseAqualityCmaintenanceEnables Claude Code read/write access to an Obsidian vault, including creating, editing, searching, and browsing notes.8MIT
Related MCP Connectors
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Read, edit, publish, and preview your pepita websites from Claude.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Attacktive/claude-projects-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server