
LSP MCP Server Integration
The LSP MCP Server connects Language Server Protocol (LSP) servers to AI assistants, enabling advanced code analysis, intelligent completion, diagnostics, and e...
Connect AI agents to Lean Theorem Prover projects with Lean LSP MCP, enabling access to diagnostics, code completion, theorem search, and project build tools.
Lean LSP MCP is a Model Context Protocol (MCP) server that connects AI assistants with Lean Theorem Prover projects via the Language Server Protocol (LSP) using the leanclient. It enables agents and LLMs to interact with Lean projects, providing access to diagnostics, goal states, term information, hover documentation, and more. This integration streamlines development workflows for Lean users by exposing a rich agent-focused toolset, including theorem search, code completion, and project build functionality. The server aims to enhance the experience of developers, researchers, and AI agents working with Lean by making Lean’s tooling accessible in automated and interactive contexts.
No information about prompt templates was found in the repository.
No information about exposed MCP resources was found in the repository.
lake build
in your project root.{
"mcpServers": {
"lean-lsp-mcp": {
"command": "lean-lsp-mcp",
"args": []
}
}
}
lake build
in your Lean project.{
"mcpServers": {
"lean-lsp-mcp": {
"command": "lean-lsp-mcp",
"args": []
}
}
}
lake build
.{
"mcpServers": {
"lean-lsp-mcp": {
"command": "lean-lsp-mcp",
"args": []
}
}
}
lake build
.{
"mcpServers": {
"lean-lsp-mcp": {
"command": "lean-lsp-mcp",
"args": []
}
}
}
If your setup requires API keys, use environment variables to keep them secure. Example:
{
"mcpServers": {
"lean-lsp-mcp": {
"command": "lean-lsp-mcp",
"args": [],
"env": {
"API_KEY": "${env:LEAN_LSP_MCP_API_KEY}"
},
"inputs": {
"api_key": "${env:LEAN_LSP_MCP_API_KEY}"
}
}
}
}
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:
Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"lean-lsp-mcp": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “lean-lsp-mcp” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | |
List of Prompts | ⛔ | No prompt templates found |
List of Resources | ⛔ | No MCP resources listed |
List of Tools | ✅ | See README and repo description |
Securing API Keys | ✅ | Example provided |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned |
Based on the available documentation and code, Lean LSP MCP provides strong tooling support for Lean projects but lacks explicit prompt templates or MCP resource definitions. Sampling and roots support are not mentioned. Overall, the server is practical for Lean users but does not yet expose the full spectrum of advanced MCP features.
Has a LICENSE | ✅ (MIT) |
---|---|
Has at least one tool | ✅ |
Number of Forks | 1 |
Number of Stars | 41 |
Lean LSP MCP is a Model Context Protocol server that connects AI assistants to Lean Theorem Prover projects via the Language Server Protocol, providing rich access to Lean’s diagnostics, goal states, code completion, theorem search, project builds, and more.
Lean LSP MCP enables tools such as theorem search (via leansearch.net), code completion, project build, diagnostics, goal state and term information, and hover documentation for Lean files.
Add the MCP component to your FlowHunt workflow, then configure the MCP server connection using the provided JSON format. Once linked, your AI agent can access all Lean LSP MCP capabilities.
If your setup requires API keys, you should store them using environment variables and reference them in the MCP server config for secure handling.
Lean LSP MCP is ideal for accessing Lean project diagnostics, exploring goal states, searching for theorems, automating code completion, and managing project builds — all interactively or in automated flows.
Supercharge your Lean workflows with FlowHunt's seamless integration of the Lean LSP MCP server. Automate theorem proving, code analysis, and more.
The LSP MCP Server connects Language Server Protocol (LSP) servers to AI assistants, enabling advanced code analysis, intelligent completion, diagnostics, and e...
The Linear MCP Server connects Linear’s project management platform with AI assistants and LLMs, empowering teams to automate issue management, search, updates,...
The Linear MCP Server integrates the Linear project management platform with AI assistants via the Model Context Protocol, enabling automation, querying, and ma...