fyi-docs
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fyi-docssearch documents for client Acme"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fyi-docs-mcp-ts
Remote MCP server for FYI Docs (document management system), built with Bun + TypeScript and deployed on Railway.
Exposes read-only FYI tools to MCP clients (Claude, Cursor, etc.) over Streamable HTTP for Somerset Accountancy Services.
Stack
Component | Choice |
Runtime | Bun |
Language | TypeScript (strict) |
MCP SDK |
|
Transport | Streamable HTTP (Web Standard, Bun-native) |
Validation | Zod |
Hosting | Railway (GitHub-connected) |
Related MCP server: pontal-mcp
Tools
Tool | Description |
| Search/list documents |
| Search/list clients ( |
| List jobs |
| List tasks |
| List filing cabinets |
| Low-level list against any FYI resource |
| Verify credentials / connectivity |
All tools are read-only in v1. Responses are summarised; secrets are redacted.
Endpoints
Path | Purpose |
| Railway health check (200) |
| MCP Streamable HTTP endpoint |
| Service metadata |
Environment variables
Required
FYI_ACCESS_ID=
FYI_ACCESS_SECRET=
FYI_REGION=uk
MCP_API_KEY= # shared secret for /mcp (min 16 chars)Optional
FYI_APPLICATION_ID=
FYI_API_USER=
FYI_BASE_URL=
PORT=3000
NODE_ENV=production
| Base URL |
|
|
|
|
Override with FYI_BASE_URL if needed. Copy .env.example to .env for local development.
Local setup
bun install
cp .env.example .env # fill in FYI credentials
bun run dev # watch mode
# or
bun startHealth:
http://localhost:3000/healthMCP:
http://localhost:3000/mcp
Railway
This repo is connected to Railway. Deploys follow GitHub pushes.
Config is in railway.toml:
Install:
bun install --frozen-lockfileStart:
bun run src/index.tsHealth check:
/health
Set secrets in Railway (do not commit them):
railway variables set FYI_ACCESS_ID=... FYI_ACCESS_SECRET=... FYI_REGION=uk MCP_API_KEY=...Optional Dockerfile (oven/bun:1) is included if you prefer image-based builds.
Authentication (API key only)
No OAuth. /mcp requires the shared MCP_API_KEY via header:
Authorization: Bearer <MCP_API_KEY>or
x-api-key: <MCP_API_KEY>
/health stays public for Railway health checks.
{
"mcpServers": {
"fyi-docs": {
"url": "https://fyi-mcp-production.up.railway.app/mcp",
"headers": {
"Authorization": "Bearer <MCP_API_KEY>"
}
}
}
}Grok Build / CLI:
[mcp_servers.fyi-docs]
url = "https://fyi-mcp-production.up.railway.app/mcp"
headers = { "Authorization" = "Bearer <MCP_API_KEY>" }Note: Hosts that only support OAuth custom connectors (e.g. Grok.com web) cannot connect to this server. Use clients that accept a static Authorization header.
Scripts
Script | Command |
| Run server |
| Run with |
|
|
| Bundle to |
Project layout
src/
index.ts # Bun HTTP entry (/health, /mcp)
server.ts # MCP server + tool registration
fyi/
client.ts # FYI External API client
config.ts # Env validation (Zod)
types.ts
tools/
documents.ts
clients.ts
jobs.ts
tasks.ts
cabinets.ts
connection.ts
utils/
response.ts # Summaries + safe errorsSecurity
No secrets in source or logs
Fail-fast on missing
FYI_ACCESS_ID/FYI_ACCESS_SECRET/MCP_API_KEY/mcpprotected by shared API key only (no OAuth)Read-only tools for v1
Sensitive keys redacted from tool output
Out of scope (v1)
OAuth, write/upsert operations, binary document download, custom domain, persistent storage.
License
Private / unlicensed unless stated otherwise.
This server cannot be deployed
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Read-only MCP server exposing a user ORANO library to their own AI agent.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for Specifai project integration and automation with any MCP-compatible AI tool. This server currently exposes tools to read all documents generated by the Specifai project.13 npm13MIT- -licenseNot gradedqualityNot gradedmaintenanceRemote MCP server exposing Monday.com tools for leads and work namespaces via streamable HTTP, enabling Claude agents to list leads/jobs and get updates.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that exposes Google Docs and Gmail capabilities to LLMs via SSE transport.-
- AlicenseAqualityAmaintenanceRead-only MCP server that lets AI clients query DMS repositories through a local bridge, supporting tools for health checks, listing connections and items, retrieving item info, and reading documents. Credentials are handled securely via a separate broker.7MIT