Pharos

Pharos

MCP server translating AI requests into Pharos GraphQL queries to fetch targets, diseases, and ligands.

1
Stars
0
Forks
0
Releases

Overview

The Pharos MCP Server is an unofficial Model Context Protocol (MCP) implementation for the Pharos database developed by NCATS. It serves as a translation layer that lets AI assistants query Pharos data via a dedicated endpoint, returning results in a usable format. Built with TypeScript for deployment on Cloudflare Workers, the server exposes an SSE endpoint at /sse and is designed to be integrated with AI tools and assistants. The core logic is in src/index.ts, which defines a tool named pharos_graphql_query that accepts a GraphQL query and optional variables, executes it against Pharos' GraphQL API at https://pharos-api.ncats.io/graphql, and returns the results. Capabilities include querying targets (proteins) by UniProt IDs, diseases by name, and ligands by identifiers such as ChEMBL IDs, as well as performing GraphQL introspection to understand the API schema. The README also provides connection guidance for Claude Desktop, example queries, and notes on deployment and customization of the GraphQL queries and server behavior.

Details

Owner
QuentinCody
Language
TypeScript
License
Other
Updated
2025-12-07

Features

Cloudflare Workers deployment

Built with TypeScript and designed for deployment on Cloudflare Workers to provide online access to the MCP server.

Pharos GraphQL tool (pharos_graphql_query)

Core tool that accepts a GraphQL query with optional variables, executes it against Pharos at https://pharos-api.ncats.io/graphql, and returns results.

Server-Sent Events (SSE) endpoint

The MCP server exposes SSE on the /sse path for streaming updates and responses.

GraphQL query capabilities

Supports querying targets (proteins), diseases, and ligands (drugs/chemicals) via GraphQL queries and identifiers like UniProt and ChEMBL.

GraphQL introspection support

Allows clients to introspect the Pharos API schema to discover available fields and data structures.

Claude Desktop integration guidance

Provides setup and configuration steps for connecting Claude Desktop (or similar assistants) to the Pharos MCP server.

Pharos API data access

Queries against the Pharos GraphQL endpoint enable access to targets, diseases, and ligands with examples included in the README.

Audience

AI researchersQuery Pharos data via an AI assistant using the MCP server.
DevelopersSet up, deploy, and manage the Pharos MCP server on Cloudflare Workers.
BioinformaticiansAccess Pharos targets, diseases, and ligands for computational analyses in research.
Data scientistsPrototype and test AI-driven queries against Pharos through the MCP interface.

Tags

PharosNCATSGraphQLMCPCloudflare WorkersTargetsDiseasesLigandsChEMBLUniProtSSEAI assistantClaude