Add Pynteny MCP server (mcp/)#105
Merged
Merged
Conversation
Adds an MCP (Model Context Protocol) server under mcp/ that exposes the Pynteny API as 6 tools (info, validate/parse synteny structure, build, search, download) so MCP-compatible agents (Claude, DeepSeek, etc.) can drive Pynteny in natural language. Includes a no-API-key smoke test and a Claude+DeepSeek example agent. This lives in the repo but is intentionally kept out of the pynteny PyPI package (packaging includes only src/pynteny), so it does not affect the distribution. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Model Context Protocol (MCP) server under
mcp/that exposes the Pynteny API as tools, so MCP-compatible agents (Claude Desktop, Claude Code, or a custom client driving Claude / DeepSeek / etc.) can run synteny-aware HMM searches in natural language.Contents (
mcp/)src/pynteny_mcp/{server,service}.py— FastMCP server with 6 tools:get_pynteny_info,validate_synteny_structure,parse_gene_symbols,build_peptide_database,run_synteny_search,download_hmm_databases.tests/smoke_test.py— no-API-key end-to-end check against the bundled test genome (asserts the known leu-operon hits; exercisesbest_hmm_wins).examples/synteny_search_agent.py— example agent (Claude + DeepSeek).README.md,pyproject.toml,requirements.txt,.env.example,.gitignore.Not part of the PyPI package
The Pynteny distribution packages only
src/pynteny, somcp/ships in the GitHub repo but is excluded from the sdist/wheel (verified against the 1.3.0 artifacts). It's installed/run separately.🤖 Generated with Claude Code