# freeport-nostr

Search Nostr events by kind, tags, and geohash radius. Use it to find rides, services, and reputation-related records through an agent.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 16
- Author: ptrinh
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ptrinh/freeport
- Updated: 2026-09-24
- HTML: https://affpapa.org/en/nevibecode/mcp/freeport-nostr

## What it does

\`freeport-nostr` gives an agent a way to search Nostr events. Queries can narrow results by event kind, tag, or distance around a geohash, with rides, services, and reputation listed as target data.

Claude Code can connect over HTTP to the hosted MCP endpoint or start the server locally with `npx -y freeport-nostr-mcp`. The stdio setup passes relay addresses through `FREEPORT_RELAYS`, so that value has to be prepared first. The server is also listed for Codex, Cursor, GitHub Copilot, and the other supported platforms.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://nostr-mcp.trinh.uk/mcp`
- Environment variables: `FREEPORT_RELAYS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http freeport-nostr https://nostr-mcp.trinh.uk/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env FREEPORT_RELAYS=<FREEPORT_RELAYS> --transport stdio freeport-nostr -- npx -y freeport-nostr-mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add freeport-nostr --url https://nostr-mcp.trinh.uk/mcp
```

2. **Platform CLI**
```bash
codex mcp add freeport-nostr --env FREEPORT_RELAYS=<FREEPORT_RELAYS> -- npx -y freeport-nostr-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "freeport-nostr": {
            "url": "https://nostr-mcp.trinh.uk/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "freeport-nostr": {
            "command": "npx",
            "args": [
                "-y",
                "freeport-nostr-mcp"
            ],
            "env": {
                "FREEPORT_RELAYS": "<FREEPORT_RELAYS>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "freeport-nostr": {
            "type": "http",
            "url": "https://nostr-mcp.trinh.uk/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "freeport-nostr": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "freeport-nostr-mcp"
            ],
            "env": {
                "FREEPORT_RELAYS": "<FREEPORT_RELAYS>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http freeport-nostr https://nostr-mcp.trinh.uk/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e FREEPORT_RELAYS=<FREEPORT_RELAYS> freeport-nostr npx -y freeport-nostr-mcp
```
Replace <…> with your own values

## When to use it
- search Nostr events by kind
- filter records with a tag
- find rides within a geohash radius
- locate reputation-related events

## Example prompts
- Search Nostr for rides near this geohash and filter the results by the requested tag.
- Find service events of this kind within the given radius.
- Look up reputation-related events and group the results by kind.

## Similar
- [AIDEN](https://affpapa.org/en/nevibecode/mcp/aiden.md) — MCP server
- [ReputeMap](https://affpapa.org/en/nevibecode/mcp/reputemap.md) — MCP server
- [elisym](https://affpapa.org/en/nevibecode/mcp/elisym.md) — MCP server · ★ 19
- [lightning-memory](https://affpapa.org/en/nevibecode/mcp/lightning-memory.md) — MCP server · ★ 9
- [Lightning Enable MCP Server](https://affpapa.org/en/nevibecode/mcp/lightning-enable-mcp-server.md) — MCP server · ★ 9
- [Blame Today](https://affpapa.org/en/nevibecode/mcp/blame-today.md) — MCP server

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
