MCP Server Python
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server Pythonbuscar jurisprudência sobre dano moral no STJ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Servidor MCP em Python
Projeto base de um servidor MCP (Model Context Protocol) em Python, pronto para conectar em clientes MCP.
Requisitos
Python 3.10+
Related MCP server: simple-mcp
Instalar
python3 -m venv .venv
source .venv/bin/activate
pip install -e .Executar
mcp-server-pythonOu usando o utilitario solicitado:
mcpserverO servidor sobe em modo stdio, que e o formato mais comum para integrar com clientes MCP locais.
Configurar cliente MCP
VS Code
Copie
examples/vscode.mcp.example.jsonpara.vscode/mcp.json.Se necessario, ajuste
commandpara o Python da sua venv.Reinicie o cliente MCP no VS Code.
Exemplo:
{
"servers": {
"python-mcp-server": {
"type": "stdio",
"command": "${workspaceFolder}/.venv/bin/python",
"args": ["-m", "mcp_server"]
}
}
}Claude Desktop
Abra o arquivo de configuracao do Claude Desktop.
Copie o conteudo de
examples/claude_desktop_config.example.json.Troque
/CAMINHO/ABSOLUTO/PARA/...pelo caminho real do projeto.
Exemplo:
{
"mcpServers": {
"python-mcp-server": {
"command": "/CAMINHO/ABSOLUTO/PARA/mcp_server/.venv/bin/python",
"args": ["-m", "mcp_server"]
}
}
}Tools disponiveis
ping() -> strsoma(a: float, b: float) -> floatagora() -> strinverter_lista(itens: list[str]) -> list[str]buscar_jurisprudencia(consulta: str, tribunal: str | None = None, limite: int = 10) -> dictdetalhe_jurisprudencia(url_ou_urn: str) -> dictbuscar_jurisprudencia_avancada(consulta: str, tribunal: str | None = None, orgao: str | None = None, data_inicio: str | None = None, data_fim: str | None = None, limite: int = 5) -> dict
Jurisprudencia com dados abertos
O servidor inclui um modulo para consulta de jurisprudencia em fonte aberta via LexML Brasil.
Fluxo recomendado
Use
buscar_jurisprudenciacom termos comoicms creditamento,dano moral consumidor,prisao preventiva.Pegue a
urlouurnde um resultado.Use
detalhe_jurisprudenciapara obter metadados e ementa.
Exemplos de parametros:
buscar_jurisprudencia(consulta="icms energia", tribunal="stj", limite=5)detalhe_jurisprudencia(url_ou_urn="urn:lex:br:superior.tribunal.justica;turma.1:acordao;resp:2006-03-09;601056-676848")
Busca avancada para analise
Use buscar_jurisprudencia_avancada quando quiser:
recorte por periodo (
data_inicioedata_fim)filtro de orgao (
turma,secao,pleno,camara,carf)retorno com
resumo_promptpronto para colar em um modelo e pedir analise comparativa
Exemplo:
buscar_jurisprudencia_avancada(consulta="icms creditamento energia", tribunal="stj", orgao="turma", data_inicio="2015-01-01", data_fim="2024-12-31", limite=3)
Estrutura
src/mcp_server/server.py: definicao do servidor e tools.src/mcp_server/legal_open_data.py: integracao com dados juridicos abertos.src/mcp_server/__main__.py: ponto de entrada para execucao.pyproject.toml: metadados, dependencias e script CLI.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KandellOliveira/mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server