FN

fangorn-network/mcp

Developer tools
2 stars 0 forks Quality 30 Trend 8

An MCP (Model Context Protocol) server that lets AI agents query a Fangorn subgraph schemas and conformant data published by data sources.

Overview

An MCP (Model Context Protocol) server that lets AI agents query a Fangorn subgraph schemas and conformant data published by data sources. where the tag is your desired registry/namesepace, e.g. for the GCP docker image registry us-central1-docker.pkg.dev/lucky-lead-489114-d7 After configuring .env, from the root run: When running in HTTP mode, clients connect to http://localhost:4000/mcp using the Streamable HTTP transport. Use the MCP Inspector to test tools interactively:

README

Fangorn MCP Server

An MCP (Model Context Protocol) server that lets AI agents query a Fangorn subgraph schemas and conformant data published by data sources.

Setup

pnpm i
cp env.example .env
# Edit .env and set SUBGRAPH_URL and SUBGRAPH_API_KEY (if calling published Subgraph)
pnpm build

Docker

To build the docker image, run:

docker build -f Dockerfile \
  -t us-central1-docker.pkg.dev/lucky-lead-489114-d7/fangorn-network/mcp:latest .

where the tag is your desired registry/namesepace, e.g. for the GCP docker image registry us-central1-docker.pkg.dev/lucky-lead-489114-d7

Running

Local (stdio)

pnpm start
# or
TRANSPORT=stdio node build/index.js

Remote (Streamable HTTP) — for networked agents

TRANSPORT=http PORT=4000 node build/index.js
# Server listens at http://localhost:4000/mcp

Docker

After configuring .env, from the root run:

docker compose up

Remote Client Connection

When running in HTTP mode, clients connect to http://localhost:4000/mcp using the Streamable HTTP transport.

Debugging

Use the MCP Inspector to test tools interactively:

pnpm inspect
View the full README on GitHub

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →