> ## Documentation Index
> Fetch the complete documentation index at: https://sec-edgar-mcp.amorelli.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Complete installation guide for SEC Edgar MCP

## System Requirements

> [card] Python
>
> **Version**: 3.11 or higher\
> **Required**: Yes

> [card] Docker
>
> **Version**: Any recent version\
> **Required**: Optional but recommended

> [card] MCP Client
>
> **Examples**: Claude Desktop, MCP CLI\
> **Required**: Yes

## Installation Methods

### Method 1: Docker (Recommended)

Docker provides the most reliable and consistent installation experience:

**1. Install Docker**

If you don't have Docker installed:

> [tab] Windows/Mac
>
> Download and install [Docker Desktop](https://www.docker.com/products/docker-desktop/)

> [tab] Linux
>
> ```bash theme={null}
> # Ubuntu/Debian
> sudo apt-get update
> sudo apt-get install docker.io
>
> # CentOS/RHEL
> sudo yum install docker
>
> # Start Docker service
> sudo systemctl start docker
> sudo systemctl enable docker
> ```

**2. Pull SEC Edgar MCP Image**

```bash theme={null}
docker pull stefanoamorelli/sec-edgar-mcp:latest
```

> [!TIP]
>
> The Docker image is automatically built and tested, ensuring consistency across all platforms.

**3. Verify Installation**

Test the Docker image:

```bash theme={null}
docker run --rm stefanoamorelli/sec-edgar-mcp:latest --version
```

### Method 2: Python Package (PyPI)

Install directly from Python Package Index:

**1. Verify Python Version**

```bash theme={null}
python --version
# Should be 3.11 or higher
```

**2. Create Virtual Environment (Recommended)**

```bash theme={null}
python -m venv sec-edgar-env
source sec-edgar-env/bin/activate  # On Windows: sec-edgar-env\Scripts\activate
```

**3. Install Package**

```bash theme={null}
pip install sec-edgar-mcp
```

For development dependencies:

```bash theme={null}
pip install sec-edgar-mcp[dev]
```

**4. Verify Installation**

```bash theme={null}
python -m sec_edgar_mcp.server --version
```

### Method 3: uvx (No Installation Required)

Run directly without installation using uvx:

**1. Install uvx**

If you don't have uvx installed:

```bash theme={null}
pip install uvx
# or
pipx install uvx
```

**2. Run SEC Edgar MCP**

No installation needed - uvx will handle everything:

```bash theme={null}
uvx --from git+https://github.com/stefanoamorelli/sec-edgar-mcp.git sec-edgar-mcp
```

> [!TIP]
>
> uvx automatically manages package installation and updates, making it ideal for quick setup without managing Python environments.

**3. Configure MCP Client**

Add to your MCP client configuration:

```json theme={null}
{
  "mcpServers": {
    "sec-edgar-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/stefanoamorelli/sec-edgar-mcp.git",
        "sec-edgar-mcp"
      ],
      "env": {
        "SEC_EDGAR_USER_AGENT": "Your Name (name@domain.com)"
      }
    }
  }
}
```

### Method 4: Development Installation

For contributors and developers:

**1. Clone Repository**

```bash theme={null}
git clone https://github.com/stefanoamorelli/sec-edgar-mcp.git
cd sec-edgar-mcp
```

**2. Create Virtual Environment**

```bash theme={null}
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
```

**3. Install in Development Mode**

```bash theme={null}
pip install -e .[dev]
```

**4. Run Tests**

```bash theme={null}
python -m pytest tests/
```

## Configuration

### Environment Variables

**SEC\_EDGAR\_USER\_AGENT** `string` *required*

**Required**. Must include your name and email address.

Example: `"John Doe (john@example.com)"`

> [!WARNING]
>
> The SEC requires this header and may block requests without proper identification.

**SEC\_EDGAR\_CACHE\_DIR** `string` (default: \~/.cache/sec-edgar)

Directory for caching SEC data to improve performance.

**SEC\_EDGAR\_RATE\_LIMIT** `integer` (default: 10)

Requests per second limit to respect SEC API guidelines.

### Setting Environment Variables

> [tab] Linux/Mac
>
> ```bash theme={null}
> export SEC_EDGAR_USER_AGENT="Your Name (name@domain.com)"
> export SEC_EDGAR_CACHE_DIR="~/sec-edgar-cache"
> ```
>
> Add to your shell profile (`~/.bashrc`, `~/.zshrc`) for persistence.

> [tab] Windows
>
> ```cmd theme={null}
> set SEC_EDGAR_USER_AGENT="Your Name (name@domain.com)"
> set SEC_EDGAR_CACHE_DIR="C:\sec-edgar-cache"
> ```
>
> Or use PowerShell:
>
> ```powershell theme={null}
> $env:SEC_EDGAR_USER_AGENT = "Your Name (name@domain.com)"
> ```

> [tab] Docker
>
> Pass environment variables to Docker:
>
> ```bash theme={null}
> docker run -e SEC_EDGAR_USER_AGENT="Your Name (name@domain.com)" \\
>            -e SEC_EDGAR_CACHE_DIR="/cache" \\
>            stefanoamorelli/sec-edgar-mcp:latest
> ```

## MCP Client Configuration

### Claude Desktop

Add to `~/.config/claude-desktop/config.json`:

> [tab] Docker
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "sec-edgar-mcp": {
>       "command": "docker",
>       "args": [
>         "run",
>         "-i",
>         "--rm",
>         "-e",
>         "SEC_EDGAR_USER_AGENT=Your Name (name@domain.com)",
>         "stefanoamorelli/sec-edgar-mcp:latest"
>       ],
>       "env": {}
>     }
>   }
> }
> ```

> [tab] Python
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "sec-edgar-mcp": {
>       "command": "python",
>       "args": ["-m", "sec_edgar_mcp.server"],
>       "env": {
>         "SEC_EDGAR_USER_AGENT": "Your Name (name@domain.com)"
>       }
>     }
>   }
> }
> ```

### Other MCP Clients

The configuration format varies by client, but the core elements remain:

* **Command**: How to start the server (`docker run...` or `python -m...`)
* **Environment**: The `SEC_EDGAR_USER_AGENT` variable
* **Transport**: Usually stdio (default)

## Verification

### Test Connection

After installation and configuration:

1. **Restart your MCP client**
2. **Check for tool discovery** - You should see SEC Edgar tools available
3. **Try a simple query**: Ask for a company's recent filings

### Expected Tools

Your MCP client should discover these tool categories:

> [card] Company Tools
>
> * lookup\_company\_cik
> * get\_company\_info
> * get\_company\_facts

> [card] Filing Tools
>
> * get\_recent\_filings
> * get\_filing\_content
> * analyze\_8k\_filing

> [card] Financial Tools
>
> * get\_financial\_statements
> * extract\_financial\_data

> [card] Insider Tools
>
> * get\_insider\_transactions
> * analyze\_form\_345

## Troubleshooting

> [accordion] Python Version Issues
>
> SEC Edgar MCP requires Python 3.11+. Check your version:
>
> ```bash theme={null}
> python --version
> ```
>
> If you have multiple Python versions, you may need to use `python3.11` or similar.

> [accordion] Docker Permission Issues
>
> On Linux, you may need to add your user to the docker group:
>
> ```bash theme={null}
> sudo usermod -aG docker $USER
> # Logout and login again
> ```

> [accordion] Package Installation Failures
>
> Try updating pip and setuptools:
>
> ```bash theme={null}
> pip install --upgrade pip setuptools wheel
> pip install sec-edgar-mcp
> ```

> [accordion] MCP Client Not Finding Tools
>
> * Verify the JSON configuration syntax
> * Check the MCP client logs
> * Ensure the server starts without errors
> * Restart the MCP client after configuration changes

## Next Steps

> [card] [Quickstart Guide](https://sec-edgar-mcp.amorelli.tech/quickstart.md)
>
> Get up and running with your first queries

> [card] [Configuration](https://sec-edgar-mcp.amorelli.tech/setup/configuration.md)
>
> Advanced configuration and customization


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.