Quickly find classes, methods, and code snippets in the Mount & Blade II: Bannerlord codebase with a lightweight MCP server built for modders.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"bannerlordsearch-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server that provides code search functionality for Bannerlord modding projects. This tool enables developers to search through Bannerlord source code using regular expressions and retrieve class definitions and code snippets.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in entertainment / developer-tools
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
MCP server for using the GitLab API
MCP Security Weekly
Get CVE alerts and security updates for BannerlordSearch.Mcp.Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that provides code search functionality for Bannerlord modding projects. This tool enables developers to search through Bannerlord source code using regular expressions and retrieve class definitions and code snippets.
This project follows a clean architecture pattern with the following layers:
BannerlordSearchMcpServer.sln
├── BannerlordSearch.Domain/ # Domain Layer (core business logic)
│ ├── Entities/
│ ├── ValueObjects/
│ ├── Interfaces/
│ ├── Exceptions/
│ └── DomainServices/
├── BannerlordSearch.Application/ # Application Layer (use cases)
│ ├── UseCases/
│ ├── DTOs/
│ ├── Services/
│ └── Ports/ (interfaces to infrastructure)
├── BannerlordSearch.Infrastructure/ # Infrastructure Layer (external concerns)
│ ├── FileSystem/
│ ├── Configuration/
│ ├── Caching/
│ └── Repositories/
├── BannerlordSearch.Presentation/ # Presentation Layer (delivery mechanisms)
│ ├── MCP/
│ ├── WebAPI/
│ └── CLI/
├── BannerlordSearch.Tests/ # Test projects per layer
│ ├── Domain.Tests/
│ ├── Application.Tests/
│ ├── Infrastructure.Tests/
│ └── Presentation.Tests/
└── BannerlordSearch.sln
Contains core business logic and entities that are independent of any framework or technology:
SearchResult entityContains application-specific business rules and use cases:
GetBannerlordClassUseCase - Retrieves Bannerlord class definitionsSearchBannerlordCodeUseCase - Searches Bannerlord code using regular expressionsContains implementations of interfaces defined in Domain and Application layers:
SymbolFileRepository - File system access and cachingRealFileSystem - File system abstractionBannerlordSourceFolderPathProvider - Configuration providerContains delivery mechanisms and user interfaces:
SymbolSearchTool - MCP tool for searching codeGetBannerlordClassTool - MCP tool for retrieving class definitionsEach layer has its own test project to ensure comprehensive coverage:
BannerlordSearch.Domain.Tests) - Tests domain entities and logicBannerlordSearch.Application.Tests) - Tests business logic and use casesBannerlordSearch.Infrastructure.Tests) - Tests file system operations and repositoriesBannerlordSearch.Presentation.Tests) - Tests MCP tools and presentation logicdotnet build
To run all tests:
dotnet test
To run tests for a specific project:
dotnet test BannerlordSearch.Application.Tests
dotnet test BannerlordSearch.Infrastructure.Tests
dotnet test BannerlordSearch.Presentation.Tests
dotnet test BannerlordSearchMcpServer.Tests
To run tests with coverage:
dotnet test --collect:"XPlat Code Coverage"
This project is designed to run as an MCP server. You can configure your IDE or tooling to connect to this server to leverage the Bannerlord code search functionality.
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.