PureScript MCP Server
An MCP server offering PureScript development tools for AI assistants. Requires Node.js and the PureScript compiler for full functionality.
PureScript MCP Tools
A Model Context Protocol (MCP) server that provides PureScript development tools for AI assistants like Claude.
Features
- Code Analysis: Parse and analyze PureScript code structure without heavy IDE setup
- PureScript IDE Integration: Start and manage PureScript IDE servers
- Type Information: Look up types and find code usages
- Dependency Graphs: Generate visual representations of module dependencies
- AI-First: Built specifically for AI assistants using the Model Context Protocol
Installation
Via npm (Recommended)
npm install -g purescript-mcp-tools
From Source
# Clone this repository
git clone https://github.com/avi892nash/purescript-mcp-tools.git
cd purescript-mcp-tools
# Install dependencies
npm install
# Test that it works
npm test
Configuration
For Claude Desktop
-
Find your Claude config file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
- Mac:
-
Add this server configuration:
If installed via npm:
{
"mcpServers": {
"purescript-tools": {
"command": "npx",
"args": ["purescript-mcp-tools"]
}
}
}
If installed from source:
{
"mcpServers": {
"purescript-tools": {
"command": "node",
"args": ["/FULL/PATH/TO/purescript-mcp-tools/index.js"]
}
}
}
- Restart Claude Desktop.
For Other MCP Clients
Configure as a stdio MCP server:
- Command:
npx(ornodeif from source) - Arguments:
["purescript-mcp-tools"](or["/full/path/to/index.js"]if from source) - Protocol: stdio
Usage
Verify Installation
In your MCP client, try running:
get_server_status
You should see a response showing the server is running.
Available Tools
This MCP server provides the following tools:
Static Analysis (No IDE Required)
getModuleName- Extract module name from PureScript filegetImports- List all imports from a modulegetAllFunctionNames- Get all function definitionsgetExports- List exported valuesgetFunctionSignature- Get type signature for a functiongetDependencyGraph- Generate module dependency graph
PureScript IDE Integration
start_purs_ide_server- Start a PureScript IDE serverstop_purs_ide_server- Stop the IDE serverpursIdeLoad- Load modules into IDEpursIdeType- Get type informationpursIdeComplete- Get completion suggestionspursIdeUsages- Find where a symbol is usedpursIdeCaseSplit- Generate case splitspursIdeAddClause- Add function clausepursIdeImport- Add imports
Basic Workflow
- Check status:
get_server_status - For simple analysis: Use static analysis tools directly
- For advanced features:
start_purs_ide_serverwith your project pathpursIdeLoadto load modules- Use
pursIdeType,pursIdeUsages, etc.
Requirements
- Node.js >= 14.0.0
- PureScript compiler (
purs) - Required only if using IDE features - Your PureScript project - With compiled output for IDE features
Troubleshooting
Server won't start: Check that Node.js is installed and dependencies are installed (npm install)
Tools not working: Run get_server_status to see what's available
Path errors: Ensure you use absolute paths in your MCP configuration
Multiple servers: Only run one PureScript IDE server at a time to avoid port conflicts
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Acknowledgments
This server implements the Model Context Protocol and provides comprehensive PureScript development assistance to AI tools.
関連サーバー
Scout Monitoring MCP
スポンサーPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
スポンサーAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Lanhu MCP
⚡ Boost Requirement Analysis Efficiency by 200%! The World's First Team Collaboration MCP Server Designed for the AI Coding Era. Automatically analyzes requirements, generates full-stack code, and downloads design assets.
WTP - Worktree Plus
Let agents manage Git worktrees via the wtp CLI.
Unstructured
Set up and interact with your unstructured data processing workflows in Unstructured Platform
depwire
Code dependency graph and AI context engine. 10 MCP tools that give Claude, Cursor, and any MCP client full codebase context — impact analysis, dependency tracing, architecture summaries, and interactive arc diagram visualization. Supports TypeScript, JavaScript, Python, and Go.
MCP Servers Collection
A collection of MCP servers providing structured interfaces for AI assistants to interact with various development tools and services.
Cyberlink MCP Server
Interact with the CW-Social smart contract on Cosmos-based blockchains.
Tether MCP
Prevents AI coding agents from drifting off your architecture — blocks wrong dependencies, enforces file structure, and gives agents persistent memory of your project's rules.
MCP Invoice Express
An MCP server for integrating with the InvoiceExpress API.
Qase
Interact with the Qase API for test management. Requires a QASE_API_TOKEN for authentication.
Atlas Docs
Access technical documentation for libraries and frameworks, formatted in clean markdown for LLM consumption.