ASTra — Claude Code MCP server for Word files
ASTra — an MCP server for Claude Code lets an agent edit Word documents in .docx format. Each save is schema-checked and recorded as a git commit.
no license ★ 1 updated 2026-11-16
claude mcp add mcp-server -- npx -y @attentionform/astra-mcp-serverWhat ASTra does
ASTra gives an agent tools to inspect and edit Word documents. It opens a .docx file in an isolated session, exposes its structure, and applies edits; saves are checked against the document schema and recorded in git.
The server can access files only in directories explicitly allowed for it. Running it requires npx and an absolute path to an existing document folder passed with --allowed-dir; without an allowed folder, it cannot read or save documents. Opening a file reports validation status, but a validation error does not by itself prevent the open.
What it helps with
- edit text in a
.docxfile through an AI agent - inspect a document’s structure before changing it
- save edits with schema validation and a git commit
Example prompts for the agent
- Edit the text in
report.docxand save the changes. - Show me the structure of
proposal.docxbefore making edits. - Open
draft.docx, fix its headings, and save the document.
How to install ASTra
Platform CLI
claude mcp add mcp-server -- npx -y @attentionform/astra-mcp-serverPlatform CLI
codex mcp add mcp-server -- npx -y @attentionform/astra-mcp-serverConfig file
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@attentionform/astra-mcp-server"
]
}
}
}Config file
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@attentionform/astra-mcp-server"
]
}
}
}Platform CLI
gemini mcp add mcp-server npx -y @attentionform/astra-mcp-serverStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about ASTra
How do I install ASTra in Claude Code?
Run claude mcp add mcp-server -- npx -y @attentionform/astra-mcp-server. The server also needs an allowed document directory supplied through --allowed-dir.
What does ASTra do?
ASTra gives an AI agent tools to inspect and edit Word .docx files. It checks saves against the schema and records them as git commits.
What does ASTra need to run?
It requires npx and an absolute path to an existing document directory passed with --allowed-dir. File access stays within the directories granted to the server.