Source Relation MCP Server

Analyzes source code dependencies within a specified directory to identify file relationships.

Local serverstdioPython 1

What is the Source Relation MCP server?

Connect Source Relation to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Analyzes source code dependencies within a specified directory to identify file relationships. The source relation mcp server is what makes that connection.

What the server does

この構造から、新しい言語のサポートを追加する場合は、src/analyzers/ に新しいモジュールを追加し、base.py を継承することで実現できる設計になっていることがわかります。 ``` ディレクトリを指定した場合はその下の src ディレクトリを解析します ファイルを指定した場合はそのファイルを基準に解析します promptからのパス入力にも対応しています promptで利用する場合は、Attach from MCP->Choose an integration->source-relationを選択してください

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Ruby — require文、require_relative文
  • Rust — mod宣言、use文
  • TypeScript — エイリアス、index.ts

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the file and storage access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Source Relation's toolset — Ruby, Rust, TypeScript — is a fair guide to whether it matches your workflow. It is maintained by owayo; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
Rubyrequire文、require_relative文
Rustmod宣言、use文
TypeScriptエイリアス、index.ts

Example prompts to try

  • Use Source Relation to Ruby.
  • Use Source Relation to Rust.
  • Use Source Relation to TypeScript.

Frequently asked questions

Source Relation can handle `tsconfig.json` path aliases (e.g., `@/components/...`) for TypeScript projects, ensuring accurate dependency resolution.