Skip to content
Agentmart
Submit a tool

kegg-pathway

Query the KEGG REST API for metabolic pathways, genes, compounds, drugs, and diseases.

Skill by beita6969

IndexedMIT★ 1,019
Write a review

Chalk Labs

Need help deploying kegg-pathway?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/beita6969-kegg-pathway

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Query the KEGG REST API for metabolic pathways, genes, compounds, drugs, and diseases. Use when the user needs pathway mapping, gene-to-pathway links, compound info, or cross-reference ID conversion. NOT for protein sequences (use UniProt), 3D structures (use PDB), or variant/SNP data (use NCBI).

Use cases: backend, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/kegg-pathway

What's inside

Skill name
kegg-pathway
Description
Query the KEGG REST API for metabolic pathways, genes, compounds, drugs, and diseases. Use when the user needs pathway mapping, gene-to-pathway links, compound info, or cross-reference ID conversion. NOT for protein sequences (use UniProt), 3D structures (use PDB), or variant/SNP data (use NCBI).
License
MIT
Instructions
127 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# KEGG Pathway Database REST API

Access the Kyoto Encyclopedia of Genes and Genomes (KEGG) for pathway maps, gene
annotations, compound data, drug info, and disease records. No authentication required.

## API Endpoints

Base: `https://rest.kegg.jp`

### GET /list/{database} -- List all entries in a database
```bash
# List all human pathways
curl -s "https://rest.kegg.jp/list/pathway/hsa"

# List all KEGG organisms
curl -s "https://rest.kegg.jp/list/organism"
```

### GET /find/{database}/{query} -- Search by keyword
```bash
# Search pathways for "apoptosis"
curl -s "https://rest.kegg.jp/find/pathway/apoptosis"

# Search genes for BRCA1 across all organisms
curl -s "https://rest.kegg.jp/find/genes/brca1"

# Search compounds by name
curl -s "https://rest.kegg.jp/find/compound/glucose"

# Search diseases by keyword
curl -s "https://rest.kegg.jp/find/disease/diabetes"
```

### GET /get/{entry} -- Retrieve full entry details
```bash
# Get a pathway entry (human apoptosis pathway)
curl -s "https://rest.kegg.jp/get/hsa04210"

# Get a human gene entry
curl -s "https://rest.kegg.jp/get/hsa:7157"

# Get a compound entry (glucose)
curl -s "https://rest.kegg.jp/get/C00031"

# Get a KEGG Orthology entry
curl -s "https://rest.kegg.jp/get/K00001"

# Get pathway map as image
curl -s "https://rest.kegg.jp/get/hsa04210/image" -o apoptosis.png
```

### GET /link/{target}/{source} -- Cross-reference between databases
```bash
# Find all genes in a pathway
curl -s "https://rest.kegg.jp/link/hsa/hsa04210"

# Find pathways associated with a gene
curl -s "https://rest.kegg.jp/link/pathway/hsa:7157"

# Find compounds in a pathway
curl -s "https://rest.kegg.jp/link/compound/hsa00010"

# Find diseases linked to a gene
curl -s "https://rest.kegg.jp/link/disease/hsa:672"

# Link KEGG Orthology to pathways
curl -s "https://rest.kegg.jp/link/pathway/ko:K00001"
```

### GET /conv/{target}/{source} -- Convert between ID systems
```bash
# Convert KEGG gene IDs to NCBI Gene IDs
curl -s "https://rest.kegg.jp/conv/ncbi-geneid/hsa:7157"

# Convert NCBI Gene IDs to KEGG
curl -s "https://rest.kegg.jp/conv/hsa/ncbi-geneid:7157"

# Convert KEGG compound to PubChem
curl -s "https://rest.kegg.jp/conv/pubchem/compound:C00031"

# Convert UniProt to KEGG gene IDs
curl -s "https://rest.kegg.jp/conv/hsa/uniprot:P04637"
```

## Supported Databases

| Database   | Code        | Description                            |
|-----------|-------------|----------------------------------------|
| Pathway   | `pathway`   | Metabolic and signaling pathway maps   |
| Module    | `module`    | Functional units within pathways       |
| KO        | `ko`        | KEGG Orthology (functional orthologs)  |
| Genome    | `genome`    | Organism genomes                       |
| Genes     | `genes`     | Gene entries per organism (e.g., hsa)  |
| Compound  | `compound`  | Small molecules and metabolites        |
| Drug      | `drug`      | Drug and pharmaceutical entries        |
| Disease   | `disease`   | Human disease entries                  |

## Common Patterns

```bash
# Full workflow: find pathways for a gene, then get pathway details
curl -s "https://rest.kegg.jp/link/pathway/hsa:7157"   # Step 1: find pathways
curl -s "https://rest.kegg.jp/get/hsa04115"             # Step 2: get details

# Map between KEGG and external IDs for batch processing
curl -s "https://rest.kegg.jp/conv/ncbi-geneid/hsa"
```

## Organism Codes

Common codes: `hsa` (human), `mmu` (mouse), `rno` (rat), `dme` (fly), `sce` (yeast), `eco` (E. coli).

## Best Practices

1. KEGG returns tab-separated plain text by default -- parse with `cut`, `awk`, or similar.
2. Use `/link` for mapping between databases and `/conv` for external ID conversion.
3. Prefix gene IDs with the organism code (e.g., `hsa:7157` for human TP53).
4. Pathway IDs use organism prefix + number (e.g., `hsa04210`); use `map04210` for reference.
5. No authentication is required, but KEGG limits heavy automated access -- keep requests reasonable.

From beita6969/ScienceClaw, MIT.

More from beita6969/ScienceClaw

Signals

Stars
1,019
Forks
109
Open issues
1
Last commit (this folder)
Mar 12, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from beita6969

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get kegg-pathway running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying kegg-pathway?

CallGet help
Cite this page

kegg-pathway skill. Agent Mart. https://agentmart.dev/skills/beita6969-kegg-pathway (last updated 2026-10-24)