encode_wordLABSCO SUMMARY
Sentiment you can reproduce, because none of it is guessed.
The same word always encodes to the same code, and a text's valence comes back with the words that produced it — which makes the output something you can check rather than something you have to trust.
What it is
A Python MCP server over the Oyemi semantic lexicon. Every word maps to a fixed code in the form HHHH-LLLLL-P-A-V — superclass, lexeme, part of speech, abstractness, valence — and sentiment is computed from that lexicon rather than inferred, with no NLP libraries needed at runtime.
What you get
- A word encoded to a semantic code, with part of speech, abstractness and valence
- Many words encoded in one call
- A passage scored for valence, with the positive and negative words named
- A similarity score between two words, with a plain-language relationship label
- Synonyms and antonyms for a word
- The lexicon's name, version and word count
Requirements
Python, and pip install oyemi-mcp. No API key, no network calls, and no runtime NLP dependencies.
Setup effort
One command — pip install oyemi-mcp
USE CASES
Scoring open-text feedback without sending it anywhere
Analyse the text locally and read the valence score along with the words on each side of it.
Finding a less loaded way to say something
Pull synonyms and antonyms for the word that is doing the damage.
Checking whether two terms mean nearly the same thing
Get a similarity score and a relationship label, rather than an opinion.
Tagging a whole vocabulary list in one pass
Encode the list in a single call and get the code, part of speech and valence for each entry.
Working out whether a word is even covered
Read the lexicon's version and size, then try the word against it.
7 tools
Listed in project docs. Your client may show a different list.
analyze_textsemantic_similarityfind_synonymsfind_antonymsbatch_encodeget_lexicon_infoBEFORE YOU INSTALL
What to know first
Tools you get
7 tools named in the project's documentation.
Requires
oyemi-mcp on PATH
Where it runs
Both documented clients run the server on your machine.
INSTALLATION
Connect your client
Server setup
pip install oyemi-mcpMCP Clients
Claude Desktop, Claude Code
{
"mcpServers": {
"oyemi": {
"command": "oyemi-mcp"
}
}
}