# Microsoft Access Database

> Microsoft Access Database is an MCP server for databases. 69 tools to read and edit Access forms, VBA, tables and queries from an AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** Windows, CLI, Self-hosted
- **Repository:** https://github.com/unmateria/mcp-access
- **MCP Registry name:** io.github.unmateria/msaccess-database
- **Categories:** [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

This server drives a locally installed copy of Microsoft Access through COM automation, so it runs on Windows only and needs Access 2010 or later, Python 3.10+, and the Trust Center option allowing access to the VBA project object model. It is installed from the PyPI package mcp-msaccess-database over stdio.

The 69 tools cover database objects (list, export as text, import, delete with a confirm flag), SQL and DAO tables, line-level VBA editing including atomic procedure patches, form and report controls, relationships, indexes, references, queries and macros. Maintenance tools compact and repair or decompile bloated databases and export a Markdown index of all structure. A form lint tool flags objectively broken layouts such as low contrast, overlap, truncation and off-canvas controls and returns PASS, REVIEW or FAIL; the README states it is a checker, not a designer.

Destructive actions such as DELETE, DROP, ALTER and deleting objects require an explicit confirmation parameter.

## Features

- **VBA editing:** Read, replace, patch, append and search procedures line by line.
- **Forms and controls:** Create, modify, list and lint forms, reports and controls in design view.
- **SQL and tables:** Run SQL via DAO, create or alter tables and batch statements.
- **Object definitions as text:** Export a form, report or query to text and import changes back.
- **Maintenance:** Compact and repair, decompile, and generate a structure index.
- **Confirmation for destructive actions:** Deletes and DDL need an explicit confirm flag.

## Good for

- Add a click handler to an Access form
- Document the structure of an old database
- Find every query that touches a table
- Create tables and fields without writing DAO code
- Check a form for overlapping or unreadable controls

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add msaccess-database -- uvx mcp-msaccess-database
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add msaccess-database -- uvx mcp-msaccess-database
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.msaccess-database]
command = "uvx"
args = ["mcp-msaccess-database"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user msaccess-database uvx -- mcp-msaccess-database

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "msaccess-database": {
      "command": "uvx",
      "args": [
        "mcp-msaccess-database"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 31 tools delete data and 10 change data; 8 names don't say. From the server's own tool labels and tool names; not verified by us.

- `access_create_database` (name suggests: changes): Create a new empty .accdb file
- `access_close`: Disconnect from Access
- `access_list_objects` (name suggests: reads): List database objects by type
- `access_get_code` (name suggests: reads): Export an object's definition as text
- `access_set_code` (name suggests: changes): Import modified text back
- `access_export_structure` (name suggests: reads): Generate a Markdown index of the database
- `access_delete_object` (name suggests: deletes): Delete a module, form, report, query or macro
- `access_create_form` (name suggests: changes): Create a new form
- `access_execute_sql` (name suggests: changes): Run SQL via DAO
- `access_execute_batch` (name suggests: changes): Execute multiple SQL statements in one call
- `access_table_info`: Show table structure
- `access_search_queries` (name suggests: reads): Search text in the SQL of all queries
- `access_create_table` (name suggests: changes): Create a table via DAO
- `access_alter_table`: Add, delete or rename a field
- `access_vbe_get_lines` (name suggests: reads): Read a line range from a VBA module
- `access_vbe_get_proc` (name suggests: reads): Get a procedure's code by name
- `access_vbe_module_info`: List procedures with line numbers
- `access_vbe_replace_lines`: Replace, insert or delete lines in a module
- `access_vbe_find` (name suggests: reads): Search text in one module
- `access_vbe_search_all` (name suggests: reads): Search text across all modules
- `access_vbe_replace_proc`: Replace a full procedure
- `access_vbe_patch_proc` (name suggests: changes): Find and replace within a procedure
- `access_vbe_append`: Append code to a module
- `access_list_controls` (name suggests: reads): List controls of a form or report
- `access_get_control` (name suggests: reads): Get one control's full definition
- `access_search_controls` (name suggests: reads): Search control properties across forms and reports
- `access_create_control` (name suggests: changes): Create a control in design view
- `access_delete_control` (name suggests: deletes): Delete a control
- `access_set_control_props` (name suggests: changes): Modify control properties
- `access_set_multiple_controls` (name suggests: changes): Modify several controls in one session
- `access_lint_form`: Check a form layout for objective problems

## FAQ

### Does Microsoft Access Database run on macOS or Linux?

No. COM automation is Windows-only and Microsoft Access must be installed.

### What setup does Access need?

Enable Trust access to the VBA project object model in the Trust Center, or run the included PowerShell script.

### Which clients work?

Claude Code, Cursor, Windsurf, Continue or any MCP-compatible client.

### Are destructive SQL statements guarded?

DELETE, DROP and ALTER require confirm_destructive=true.

### How do I add Microsoft Access Database to Claude Code?

Run this command in your terminal: claude mcp add msaccess-database -- uvx mcp-msaccess-database

### What are the best alternatives to Microsoft Access Database?

The closest alternatives to Microsoft Access Database are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/microsoft-access-database
