Skip to main content
Glama
SolidFire MCP server

SolidFire MCP server

by scaleoutsean
README.md
# SolidFire MCP server

A split-horizon MCP server for NetApp SolidFire Element OS:

- The public Cloudflare Worker exposes only bundled Element OS 12.7
  documentation and Postman examples.
  - SolidFire MCP server is tested and developed on version 12.5. Other
    versions should work as well, and recent SolidFire can work with 12.5
    (just point your JSON RPC path at 12.7)
- The npm package runs locally over stdio and additionally exposes five
  explicitly allowlisted, read-only cluster tools.
  - Use these from agents or tools that need to know about storage, or
    use these as templates to add additional tools
- The public (HTTP) server cannot connect to a SolidFire system and does not accept
  credentials; it is your easy search tool for SolidFire API documentation for 12.7

## Public documentation tools

- `search_api_methods`
- `get_api_catalog`
- `get_api_method`
- `get_request_example`

The checked-in generated catalog is derived from the Element OS 12.7 Postman
collection. It contains 313 request variants; examples are preserved as source
text because some Postman placeholders are intentionally not strict JSON.

Example that returns API documentation for `GetClusterStructure`:

```raw
Use solidfire-docs to search for GetClusterStructure.
```

## Local operational tools

| Tool | SolidFire method | Endpoint |
| --- | --- | --- |
| `get_cluster_structure` | `GetClusterStructure` | MVIP |
| `test_connect_svip` | `TestConnectSvip` | node API (may require cluster admin account) |
| `get_api` | `GetAPI` | MVIP |
| `list_schedules` | `ListSchedules` | MVIP |
| `get_limits` | `GetLimits` | MVIP |

Sensitive fields in `GetClusterStructure`, including CHAP secrets, are replaced
with `<redacted>` before an MCP response is returned.

Example to get cluster limits (`GetClusterLimits`):

```raw
Use solidfire-local to get limits.
```

If you use these often, consider shorter names, e.g. `sf-api` and `sf-dc1`, for example.

## Local configuration

Copy `env.example` and populate it for the host launching the MCP server:

```dotenv
SF_HOST=solidfire-mvip.example.net
SF_PORT=443
SF_NODE_HOST=solidfire-node.example.net
SF_NODE_PORT=442
SF_USERNAME=monitor
SF_PASSWORD=replace-me
SF_API_VERSION=12.7
SF_ROOT_CA_CERT=/path/to/root-ca.crt
SF_REQUEST_TIMEOUT_MS=30000
```

Set `SOLIDFIRE_INSECURE_TLS=true` only for controlled development. The server
prints a warning to stderr when certificate validation is disabled. The normal
default validates TLS and optionally trusts `SF_ROOT_CA_CERT`.

Configure the stdio command with the environment loaded by your MCP client:

```json
{
  "solidfire-local": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@scaleoutsean/solidfire-mcp"],
    "env": {
      "SF_HOST": "solidfire-mvip.example.net",
      "SF_USERNAME": "monitor",
      "SF_PASSWORD": "${input:solidfire-password}",
      "SF_API_VERSION": "12.7",
      "SF_ROOT_CA_CERT": "/path/to/root-ca.crt"
    }
  }
}
```

## How to use

The MCP endpoint is `/mcp`. Do not configure the bare custom-domain root or the
MCP client will try a different protocol after receiving its 404 response.

### Public documentation only

Add the hosted, authless MCP server to your MCP client:

```json
{
  "servers": {
    "solidfire-docs": {
      "type": "http",
      "url": "https://solidfire.mcp.scaleoutsean.com/mcp"
    }
  }
}
```

Some clients call the transport `"streamable-http"` instead of `"http"`. The
URL remains the same.

This mode provides only:

- API method search
- the 12.7 API catalog
- method details
- request examples

It never connects to a SolidFire cluster and does not accept credentials.

### Public documentation plus local operations

Register both servers. The names must be different because one uses HTTP and
the other uses stdio:

```json
{
  "servers": {
    "solidfire-docs": {
      "type": "http",
      "url": "https://solidfire.mcp.scaleoutsean.com/mcp"
    },
    "solidfire-local": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@scaleoutsean/solidfire-mcp"],
      "env": {
        "SF_HOST": "solidfire-mvip.example.net",
        "SF_NODE_HOST": "solidfire-node.example.net",
        "SF_USERNAME": "monitor",
        "SF_PASSWORD": "${input:solidfire-password}",
        "SF_API_VERSION": "12.7",
        "SF_ROOT_CA_CERT": "/path/to/root-ca.crt"
      }
    }
  }
}
```

`solidfire-password` is client input prompt to authenticate against the SolidFire API.
If authentication fails (code 401), add environment variable `SF_PASSWORD` and reload MCP server (see local troubleshooting at the bottom for more).

Use `SF_NODE_HOST` and `SF_NODE_PORT` only when `test_connect_svip` is needed.
The local server also includes the documentation tools, so registering the
public server is optional for that client.

### Fully local from this checkout

Build the package:

```sh
npm install
npm run build
```

Point the stdio server at the built file:

```json
{
  "servers": {
    "solidfire-local": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/solidfire-mcp-server/dist/stdio.js"],
      "env": {
        "SF_HOST": "solidfire-mvip.example.net",
        "SF_NODE_HOST": "solidfire-node.example.net",
        "SF_USERNAME": "monitor",
        "SF_PASSWORD": "${input:solidfire-password}",
        "SF_API_VERSION": "12.7"
      }
    }
  }
}
```

For example, after cloning from Github and building, you  `args` path may be `/home/USERNAME/code/solidfire-mcp-server/dist/stdio.js`.

To run a local copy of the public Worker:

```sh
npm run dev:worker
```

Wrangler prints its local URL. Add `/mcp` to that URL when configuring the MCP
client, for example:

```text
http://127.0.0.1:8787/mcp
```

Register this local HTTP endpoint alongside the local stdio server if testing
both deployment modes. The local Worker still exposes documentation tools
only.

### Troubleshooting remote connections

- A `404` followed by an SSE fallback normally means `/mcp` is missing from
  the configured URL.
- An unauthenticated browser `GET /mcp` can return 405 or 406 because an MCP
  request requires the protocol `Accept` headers. This does not indicate that
  the endpoint failed.
- The workers.dev diagnostic URL is
  `https://solidfire-mcp.scaleoutsean.workers.dev/mcp`.

### Troubleshooting local connections

- `stdio`: authentication error result in error 401. Use `export SF_PASSWORD='<pass>'`
  (or equivalent on Windows) before starting your application. It is not 
  recommended to hard-code API password in `mcp-config.json`.
- `stdio`: insufficient permissions (e.g. not using administrator when it's required)
  result in the same denied error that SolidFire API normally returns. 
- `stdio`: TLS-related issues can be "solved" b

Example of a working configuration for `stio` which may require fiddling.

![stdio configuration for SolidFire MCP](./solidfire-mcp-stdio-configuration.png)
- (1) Use `stdio` type.
- (2) `node` must be installed.
- (3) `dist/stdio.js` is relative to where I start node (which is from the directory where I built MCP server). Use absolute path if you execute from a different location.
- (4) Notice that I use `prod` (DNS name) because the TLS certificate is issued to that hostname. I also use API version 12.5 (and ignore several unavailable commands from 12.7). Despite that, I still must use insecure TLS in this development environment because I haven't deployed the correct SSL certificate to the node endpoint (:442). If I did that, I could use TLS validation with local CA. I also had to run `export SF_PASSWORD` before starting my environment - as you see, password is not set in MCP configuration.

## Development

```sh
npm install
npm run build
npm test
npm run build:worker
```

The generated catalog is checked in, so normal builds do not require the
ignored `reference/` directory. To regenerate it locally:

```sh
npm run generate:catalog
```

Cloudflare development and deployment use `wrangler.jsonc`. The Worker is
stateless, has no outbound fetch path, and limits MCP POST bodies to 32 KB.

```sh
cp wrangler.example.jsonc wrangler.jsonc
npm run dev:worker
```

## Security

- Credentials are read from process environment only and are never persisted.
- Authorization headers and request bodies are not logged.
- Public mode registers no SolidFire operational tools.
- The operational allowlist rejects every method not listed above.
- `GetAccounts`-class operations are deliberately excluded because their
  responses can contain CHAP credentials.

## Contributions

- Bug reports and feature requests related to SolidFire MCP are welcome

## License and Copyright

- MIT License
- ScaleoutSean (https://github.com/ScaleoutSean), (c) 2026