[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [MorphoSource media record](https://spiral.ai/integrations/opencode/morphosource-media-record)

# How to Use MorphoSource media record in opencode

Returns one MorphoSource media record with specimen context, reuse terms, and citation details. Use it to assess a scan or mesh you already found before selecting data for a study or lesson.

|  |  |
| --- | --- |
| Model | MorphoSource media record |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MorphoSource media record in opencode

- Use MorphoSource media record for https://www.morphosource.org/concern/media/000390223 and add its supplied citation instructions and reuse information to the project's research notes.
- Use MorphoSource media record for https://www.morphosource.org/concern/media/000390218 and add an annotated entry to the project's specimen catalog using its description and imaging information.
- Use MorphoSource media record to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from MorphoSource media record and tell me what changed since last week.
- Check MorphoSource media record and summarize what you find in three bullet points.

## How to set up MorphoSource media record in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run MorphoSource media record**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "morphosource-org/models-3d/get_media",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: opencode finds MorphoSource media record on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## MorphoSource media record tools and prices

- [MorphoSource · Get media](https://spiral.ai/tools/alexandria/morphosource-org/models-3d/get_media) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Media page URL, e.g. https://www.morphosource.org/concern/media/000769445. Give this or media_id. |
| media_id |  | — | Media id, e.g. 000769445. Give this or url. Pattern: ^[0-9A-Za-z]{1,9}$. |

## What can you do with MorphoSource media record in opencode?

Build a specimen reference table from MorphoSource records for a comparative anatomy project. A coding agent can organize media identifiers, specimen context, imaging information, and reuse notes in your project's data files.

### Plan a comparative anatomy study

Shortlist skull scans and meshes for Puma concolor, then compare specimen identifiers, anatomical parts, and imaging information before choosing study material.

### Choose material for an anatomy lesson

Find candidate Alligator mississippiensis media and review their descriptions and reuse information to prepare a lesson resource list.

### Prepare a research citation inventory

Collect media identifiers, specimen references, and supplied citation instructions for the scans and meshes under consideration for a paper.

### Review reuse terms before selecting media

Compare the rights information attached to candidate fossil media and identify records whose stated restrictions need closer review before publication.

### Separate specimen counts from media counts

Organize Felidae media by specimen identifier so separate scans and meshes of one specimen do not inflate a research shortlist.

### Review imaging methods

Compare the imaging information supplied for primate skull media to identify candidates with methods suitable for a proposed comparison.

### Prepare a museum resource guide

Build an annotated guide to cultural heritage media using object descriptions, collection references, and links to the original MorphoSource records.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## MorphoSource media record in other agents

- [Amp](https://spiral.ai/integrations/amp/morphosource-media-record)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/morphosource-media-record)
- [Claude](https://spiral.ai/integrations/claude-desktop/morphosource-media-record)
- [Claude Code](https://spiral.ai/integrations/claude-code/morphosource-media-record)
- [Cline](https://spiral.ai/integrations/cline/morphosource-media-record)
- [Codex](https://spiral.ai/integrations/codex/morphosource-media-record)
- [Cursor](https://spiral.ai/integrations/cursor/morphosource-media-record)
- [Devin](https://spiral.ai/integrations/devin/morphosource-media-record)
- [dots](https://spiral.ai/integrations/dots/morphosource-media-record)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/morphosource-media-record)
- [Gemini](https://spiral.ai/integrations/gemini/morphosource-media-record)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/morphosource-media-record)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/morphosource-media-record)
- [goose](https://spiral.ai/integrations/goose/morphosource-media-record)
- [Grok](https://spiral.ai/integrations/grok/morphosource-media-record)
- [Grok Build](https://spiral.ai/integrations/grok-build/morphosource-media-record)
- [Hermes](https://spiral.ai/integrations/hermes/morphosource-media-record)
- [Instinct](https://spiral.ai/integrations/instinct/morphosource-media-record)
- [Manus](https://spiral.ai/integrations/manus/morphosource-media-record)
- [Muse](https://spiral.ai/integrations/muse/morphosource-media-record)
- [Muse Code](https://spiral.ai/integrations/muse-code/morphosource-media-record)
- [n8n](https://spiral.ai/integrations/n8n/morphosource-media-record)
- [Notion](https://spiral.ai/integrations/notion/morphosource-media-record)
- [OpenClaw](https://spiral.ai/integrations/openclaw/morphosource-media-record)
- [Perplexity](https://spiral.ai/integrations/perplexity/morphosource-media-record)
- [Raycast](https://spiral.ai/integrations/raycast/morphosource-media-record)
- [VS Code](https://spiral.ai/integrations/vscode/morphosource-media-record)
- [Windsurf](https://spiral.ai/integrations/windsurf/morphosource-media-record)
- [Zapier](https://spiral.ai/integrations/zapier/morphosource-media-record)

## More opencode guides

- [MIT Election Lab election returns](https://spiral.ai/integrations/opencode/mit-election-lab-election-returns)
- [MorphoSource media search](https://spiral.ai/integrations/opencode/morphosource-media-search)
- [MIT Election Lab dataset search](https://spiral.ai/integrations/opencode/mit-election-lab-dataset-search)
- [MorphoSource specimen details](https://spiral.ai/integrations/opencode/morphosource-specimen-details)
- [MIT Election Lab dataset details](https://spiral.ai/integrations/opencode/mit-election-lab-dataset-details)
- [MorphoSource specimen search](https://spiral.ai/integrations/opencode/morphosource-specimen-search)

## Questions about MorphoSource media record in opencode

**Can opencode use MorphoSource media record?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run MorphoSource media record like any built-in tool.

**How much does MorphoSource media record cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use MorphoSource media record in opencode?**

No. Spiral runs MorphoSource media record on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up MorphoSource media record in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while MorphoSource media record runs?**

MorphoSource media record runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does MorphoSource contain only biological 3D models?**

No. MorphoSource includes biological specimens, fossils, and cultural heritage objects, with 3D, 2D, and audiovisual media.

**Does each media record represent a different specimen?**

No. MorphoSource requires each scan and each mesh to have its own record, so several records can represent the same specimen.

**Can a record change after it is submitted?**

Yes. MorphoSource allows submitted media information to be edited when a mistake is found, so the initial submission is not necessarily the final description.

**Are all deposited media records public?**

No. Published media records are publicly visible, while private records are limited to users with relevant roles. Public results exclude private deposits that the viewer cannot access.

**Does every media record have a DOI?**

No. DOIs are not assigned automatically when media are created; assignment may need to be requested.

