# Coin Identifier MCP Server (`mowell_labs/coin-identifier-mcp`) Actor

Vision-based coin and currency identification MCP server. Send a photo of any coin, paper money, or bullion piece and get structured identification data including country, denomination, year, mint mark, grade estimate, and market value. Powered by Claude Vision.

- **URL**: https://apify.com/mowell\_labs/coin-identifier-mcp.md
- **Developed by:** [Brian Mowell](https://apify.com/mowell_labs) (community)
- **Categories:** MCP servers, Agents, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 value lookups

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Coin Identifier MCP Server

Vision-based coin and currency identification powered by Claude Vision. Send a photo of any coin, paper money, or bullion piece and get back structured identification data.

**By [Mowell Labs](https://github.com/mowell-labs)**

### What It Does

| Tool | Description | API Cost |
|------|-------------|----------|
| `identify_coin` | Photo → full coin/currency ID (country, year, denomination, mint, grade, value) | ~$0.02 |
| `identify_item` | Photo → auto-detect type (coin/currency/card/bullion) then ID | ~$0.03 |
| `estimate_value` | Coin attributes → web-searched market value from recent sales | ~$0.01 |
| `estimate_melt_value` | Metal + weight + spot price → melt value (no API call) | Free |
| `estimate_silver_melt` | Pre-1965 US coin denomination → silver melt value with grade premium | Free |

### Requirements

- Python 3.10+
- Anthropic API key (set as `ANTHROPIC_API_KEY` environment variable)

### Install

```bash
pip install coin-identifier-mcp
````

Or clone and install locally:

```bash
git clone https://github.com/mowell-labs/coin-identifier-mcp.git
cd coin-identifier-mcp
pip install -e .
```

### Run

#### stdio (default — for Claude Desktop, Cursor, etc.)

```bash
export ANTHROPIC_API_KEY="sk-ant-..."
python -m server
```

#### SSE (for web clients, Apify, MCPize)

```bash
export ANTHROPIC_API_KEY="sk-ant-..."
fastmcp run server.py --transport sse --port 8001
```

#### Claude Desktop config

Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "coin-identifier": {
      "command": "python",
      "args": ["-m", "server"],
      "cwd": "/path/to/coin-identifier-mcp",
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}
```

### Tools

#### identify\_coin

Identify a coin or paper currency from a photograph.

**Input:**

- `image_base64` (string, required) — Base64-encoded image data
- `mime_type` (string, default "image/jpeg") — Image MIME type

**Output:**

```json
{
  "success": true,
  "coin": {
    "country": "United States",
    "denomination": "Quarter",
    "year": 1964,
    "mint_mark": "D",
    "composition": "90% silver, 10% copper",
    "variety": "",
    "errors": "",
    "grade_estimate": "VF",
    "condition_description": "Moderate wear on high points, all details visible",
    "name": "Washington Quarter",
    "description": "1964-D Washington Quarter, 90% silver",
    "estimated_value": 8.50,
    "is_graded": false,
    "grading_service": "",
    "grade_number": "",
    "certification_number": "",
    "sub_type": "",
    "friedberg_number": ""
  }
}
```

#### identify\_item

Auto-detect whether image is coin, card, or bullion, then identify.

**Input:** Same as `identify_coin`.

**Output:** Same as `identify_coin` with added `item_type` field.

#### estimate\_value

Look up current market value via web search.

**Input:**

- `name` (string, required) — e.g. "Morgan Silver Dollar"
- `year` (int, optional)
- `denomination` (string, optional)
- `mint_mark` (string, optional)
- `grade_estimate` (string, optional)
- `variety` (string, optional)
- `grading_service` (string, optional) — NGC, PCGS, etc.
- `grade_number` (string, optional) — MS-65, AU-58, etc.
- `certification_number` (string, optional)
- `sub_type` (string, optional) — fractional\_currency, etc.
- `friedberg_number` (string, optional)
- `country` (string, optional)

**Output:**

```json
{
  "success": true,
  "estimated_value": 42.50,
  "analysis": "Based on recent eBay sold listings...",
  "source": "web_search"
}
```

#### estimate\_melt\_value

Pure calculation — no API calls.

**Input:**

- `metal` (string) — gold, silver, platinum, etc.
- `weight_oz` (float) — Weight in troy ounces
- `spot_price_per_oz` (float) — Current spot price
- `purity` (float, default 0.999)

**Output:**

```json
{
  "metal": "gold",
  "weight_oz": 1.0,
  "purity": 0.999,
  "spot_price_per_oz": 2350.00,
  "melt_value_usd": 2347.65
}
```

#### estimate\_silver\_melt

Pre-1965 US silver coin melt value with grade premium.

**Input:**

- `denomination` (string) — dime, quarter, half dollar, dollar
- `year` (int) — Must be pre-1965
- `silver_spot_per_oz` (float) — Current silver spot price
- `grade_estimate` (string, optional) — Grade for premium multiplier

**Output:**

```json
{
  "denomination": "quarter",
  "year": 1958,
  "silver_content_oz": 0.1808,
  "silver_spot": 30.0,
  "melt_value_usd": 5.42,
  "grade_estimate": "VF",
  "grade_multiplier": 2.0,
  "estimated_value_usd": 10.85,
  "note": "Melt value is floor. Numismatic premium varies by date, mint, condition."
}
```

### Environment Variables

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `ANTHROPIC_API_KEY` | Yes | — | Your Anthropic API key |
| `COIN_ID_VISION_MODEL` | No | `claude-sonnet-4-20250514` | Model for vision identification |
| `COIN_ID_SEARCH_MODEL` | No | `claude-haiku-4-5-20251001` | Model for value web search |

### Test Commands

```bash
## Test with fastmcp CLI
export ANTHROPIC_API_KEY="sk-ant-..."

## List tools
fastmcp dev server.py --list-tools

## Test melt value (no API key needed)
echo '{"metal": "silver", "weight_oz": 1.0, "spot_price_per_oz": 30.0, "purity": 0.999}' | \
  fastmcp run server.py --tool estimate_melt_value

## Test silver melt
echo '{"denomination": "quarter", "year": 1958, "silver_spot_per_oz": 30.0, "grade_estimate": "VF"}' | \
  fastmcp run server.py --tool estimate_silver_melt

## Test coin identification (requires API key + image)
python3 -c "
import base64, json
with open('test_coin.jpg', 'rb') as f:
    b64 = base64.b64encode(f.read()).decode()
print(json.dumps({'image_base64': b64, 'mime_type': 'image/jpeg'}))
" | fastmcp run server.py --tool identify_coin
```

### Typical Agent Workflow

```
1. Agent receives coin photo from user
2. Call identify_item → gets structured ID + rough value
3. Call estimate_value with the returned attributes → gets market-verified price
4. (Optional) Call estimate_silver_melt for pre-1965 silver → gets melt floor
5. Agent presents complete identification + valuation to user
```

### Cost Per Use

| Operation | Model | Approximate Cost |
|-----------|-------|-----------------|
| Classify item type | Sonnet | ~$0.005 |
| Identify coin | Sonnet | ~$0.02 |
| Value lookup | Haiku + web search | ~$0.01 |
| Melt calculation | None | Free |
| **Full pipeline** | — | **~$0.03-0.04** |

### License

MIT

### Platform Deployment

#### Apify

See `apify/` directory (coming soon) for Actor wrapper.

#### MCPize

```bash
## Direct deploy via MCPize CLI
mcpize deploy server.py --name coin-identifier --transport sse
```

## Actor input object example

```json
{}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mowell_labs/coin-identifier-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("mowell_labs/coin-identifier-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call mowell_labs/coin-identifier-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=mowell_labs/coin-identifier-mcp",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Coin Identifier MCP Server",
        "description": "Vision-based coin and currency identification MCP server. Send a photo of any coin, paper money, or bullion piece and get structured identification data including country, denomination, year, mint mark, grade estimate, and market value. Powered by Claude Vision.",
        "version": "1.0",
        "x-build-id": "0H2Tjj16Y5BYVzPhO"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mowell_labs~coin-identifier-mcp/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mowell_labs-coin-identifier-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/mowell_labs~coin-identifier-mcp/runs": {
            "post": {
                "operationId": "runs-sync-mowell_labs-coin-identifier-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/mowell_labs~coin-identifier-mcp/run-sync": {
            "post": {
                "operationId": "run-sync-mowell_labs-coin-identifier-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {}
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
