---
updatedAt: 2026-03-08T12:40:14.000Z
agentTools:
  projectIndex: https://docs.getfastah.com/llms.txt
---

# MCP for Fastah API docs

[![Install in VS Code](https://img.shields.io/badge/VS_Code-Fastah_API_Docs-0098FF?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode:mcp/install?%7B%22name%22%3A%22fastah-ip-geolocation-v1%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fdocs.getfastah.com%2Fmcp%22%2C%22headers%22%3A%7B%22Fastah-Key%22%3A%22%24%7Binput%3Afastah-api-key-aws-marketplace%7D%22%7D%7D) [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=fastah-ip-geolocation-v1\&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vZG9jcy5nZXRmYXN0YWguY29tL21jcCIsImhlYWRlcnMiOnsiRmFzdGFoLUtleSI6IiR7aW5wdXQ6ZmFzdGFoLWFwaS1rZXktYXdzLW1hcmtldHBsYWNlfSJ9fQ==)

The Fastah Docs Model Context Protocol (MCP) server lets AI coding assistants connect to Fastah API documentation and the REST API.

The server lets your AI assistant query documentation and call the Fastah API. It can help with request format, response fields, and how to interpret IP geolocation and related attributes.

To enable API calls, configure your `Fastah-Key` by following [Quick Start](quick-start).

## What is MCP?

Model Context Protocol (MCP) is an open standard for giving AI apps secure access to external tools and data. The Fastah MCP server provides:

* **Direct REST API access for IP lookups**: Create a key in [Quick Start](quick-start), then add it to your MCP configuration.
* **Documentation search**: Ask questions about fields, formats, and behavior.
* **Code generation support**: Generate integration snippets for Fastah API use cases.

## Setup with your AI coding agent

Fastah hosts a remote MCP server at <https://docs.getfastah.com/mcp>. Configure your AI tool to connect to this endpoint.

<Tabs>
  <Tab title="Cursor">
    **Add to `~/.cursor/mcp.json`:**

```json
  {
  "mcpServers": {
    "fastah-ip-geolocation-v1": {
      "type": "http",
      "url": "https://docs.getfastah.com/mcp",
      "headers": {
        "Fastah-Key": "${input:fastah-api-key-aws-marketplace}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "fastah-api-key-aws-marketplace",
      "description": "Fastah API Key from AWS Marketplace: https://aws.amazon.com/marketplace/pp/B084VR96P3",
      "password": true
    }
  ]
}
```

 </Tab>

  <Tab title="Windsurf">
    **Add to `~/.codeium/windsurf/mcp_config.json`:**

```json
    {
  "mcpServers": {
    "fastah-ip-geolocation-v1": {
      "type": "http",
      "url": "https://docs.getfastah.com/mcp",
      "headers": {
        "Fastah-Key": "${input:fastah-api-key-aws-marketplace}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "fastah-api-key-aws-marketplace",
      "description": "Fastah API Key from AWS Marketplace: https://aws.amazon.com/marketplace/pp/B084VR96P3",
      "password": true
    }
  ]
}
```
  </Tab>

  <Tab title="Claude Desktop">
    **Add to `claude_desktop_config.json`:**

```json
    {
  "mcpServers": {
    "fastah-ip-geolocation-v1": {
      "type": "http",
      "url": "https://docs.getfastah.com/mcp",
      "headers": {
        "Fastah-Key": "${input:fastah-api-key-aws-marketplace}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "fastah-api-key-aws-marketplace",
      "description": "Fastah API Key from AWS Marketplace: https://aws.amazon.com/marketplace/pp/B084VR96P3",
      "password": true
    }
  ]
}
```
  </Tab>
</Tabs>

## Testing the MCP setup

After setup, test the MCP connection:

1. **Open your AI editor** (<Anchor label="Visual Studio Code" target="_blank" href="https://code.visualstudio.com/docs/copilot/customization/mcp-servers">Visual Studio Code</Anchor>, <Anchor label="Cursor" target="_blank" href="https://cursor.com/docs/context/mcp#installing-mcp-servers">Cursor</Anchor>, etc.)
2. **Start a new chat** with the AI assistant
3. **Ask about Fastah API**. Example prompts:
   * "How do I \[common use case]?"
   * "Show me an example of \[API functionality]"
   * "Create a \[integration type] using Fastah API"

The AI should now be able to access Fastah documentation and, if configured, run API calls through the MCP server.